Skip to content

Commit

Permalink
chore(example): use babel-plugin-import, Close dvajs#155
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Oct 14, 2016
1 parent 7c46ab8 commit e7e1262
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/user-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"devDependencies": {
"atool-build": "^0.7.6",
"babel-eslint": "^6.0.4",
"babel-plugin-antd": "^0.4.0",
"babel-plugin-dva-hmr": "^0.1.0",
"babel-plugin-import": "^1.0.1",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-runtime": "^6.9.2",
"dora": "0.3.x",
Expand Down
3 changes: 2 additions & 1 deletion examples/user-dashboard/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const glob = require('glob');
module.exports = function (webpackConfig, env) {
webpackConfig.babel.babelrc = false;
webpackConfig.babel.plugins.push('transform-runtime');
webpackConfig.babel.plugins.push(['antd', {
webpackConfig.babel.plugins.push(['import', {
libraryName: 'antd',
style: 'css' // if true, use less
}]);

Expand Down

0 comments on commit e7e1262

Please sign in to comment.