Skip to content

Commit

Permalink
only use NamedModulesPlugin for dev HMR
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Feb 8, 2017
1 parent 024e54f commit ec92f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const plugins = [
new Copy([{context: 'src/static/', from: '**/*.*'}]),
new webpack.optimize.CommonsChunkPlugin({name: 'vendor'}),
new webpack.DefinePlugin({'process.env.NODE_ENV': JSON.stringify(env)}),
new webpack.NamedModulesPlugin(),
new HTML({template: 'src/index.html'}),
new webpack.LoaderOptionsPlugin({
options: {
Expand Down Expand Up @@ -48,6 +47,7 @@ if (isProd) {
// dev only
plugins.push(
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(),
new Dashboard()
);
}
Expand Down

0 comments on commit ec92f76

Please sign in to comment.