Skip to content

Commit

Permalink
proper use of react-hot-loader
Browse files Browse the repository at this point in the history
Hot reloading now preserve the state of React components.

HMR plugin removed. Explained here
gaearon/react-hot-loader#77
  • Loading branch information
tomzaoral committed Jul 22, 2015
1 parent d8de3f5 commit a0a76fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"react": "^0.13.2"
},
"scripts": {
"dev": "webpack-dev-server --config webpack.config.dev.js --inline --progress --colors --content-base public --history-api-fallback",
"dev": "webpack-dev-server --config webpack.config.dev.js --inline --progress --colors --content-base public --history-api-fallback --hot",
"build": "webpack --config webpack.config.build.js --progress --colors",
"test": "karma start"
}
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ config.module.loaders.push({
exclude: /node_modules/
});

config.plugins.push(new webpack.HotModuleReplacementPlugin());
config.plugins.push(new webpack.NoErrorsPlugin());

module.exports = config;
module.exports = config;

0 comments on commit a0a76fc

Please sign in to comment.