summaryrefslogtreecommitdiffstats
path: root/webapp/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/webpack.config.js')
-rw-r--r--webapp/webpack.config.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/webapp/webpack.config.js b/webapp/webpack.config.js
index 191518a07..aaadb9de5 100644
--- a/webapp/webpack.config.js
+++ b/webapp/webpack.config.js
@@ -105,7 +105,13 @@ var config = {
'process.env': {
NODE_ENV: JSON.stringify('production')
}
+ }),
+ new webpack.optimize.CommonsChunkPlugin({
+ minChunks: 2,
+ children: true,
+ name: 'main'
})
+ //new webpack.optimize.AggressiveMergingPlugin()
],
resolve: {
alias: {
@@ -145,9 +151,6 @@ if (!DEV) {
})
);
config.plugins.push(
- new webpack.optimize.AggressiveMergingPlugin()
- );
- config.plugins.push(
new webpack.optimize.OccurrenceOrderPlugin(true)
);
config.plugins.push(