Skip to content

Commit

Permalink
chore: update example to use babel-plugin-dva-hmr@0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Oct 19, 2016
1 parent 42b0b2c commit a6a4b31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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,7 +13,7 @@
"devDependencies": {
"atool-build": "^0.7.6",
"babel-eslint": "^6.0.4",
"babel-plugin-dva-hmr": "^0.1.0",
"babel-plugin-dva-hmr": "^0.2.0",
"babel-plugin-import": "^1.0.1",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-runtime": "^6.9.2",
Expand Down
6 changes: 1 addition & 5 deletions examples/user-dashboard/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ module.exports = function (webpackConfig, env) {

// Enable hmr for development.
if (env === 'development') {
webpackConfig.babel.plugins.push(['dva-hmr', {
entries: [
'./src/index.js',
],
}]);
webpackConfig.babel.plugins.push('dva-hmr');
}

// Parse all less files as css module.
Expand Down

0 comments on commit a6a4b31

Please sign in to comment.