Webpack with scope hoisting

pull/1972/head
Lyubo Marinov 8 years ago
parent 5e6cea63fb
commit 2a75d67be9
  1. 6
      webpack.config.js

@ -33,16 +33,12 @@ if (minimize) {
NODE_ENV: JSON.stringify('production') NODE_ENV: JSON.stringify('production')
} }
})); }));
plugins.push(new webpack.optimize.ModuleConcatenationPlugin());
plugins.push(new webpack.optimize.UglifyJsPlugin({ plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: { compress: {
// It is nice to see warnings from UglifyJsPlugin that something is
// unused/removed.
warnings: true warnings: true
}, },
extractComments: true, extractComments: true,
// Use the source map to map error message locations to modules.
sourceMap: true sourceMap: true
})); }));
} }

Loading…
Cancel
Save