only compress assets in production

This commit is contained in:
Mike Greiling 2017-02-09 17:26:48 -06:00
parent cee957f56c
commit 4cd3eb96f5
1 changed files with 4 additions and 4 deletions

View File

@ -80,9 +80,6 @@ var config = {
modules: false,
assets: true
}),
new CompressionPlugin({
asset: '[path].gz[query]',
}),
new webpack.IgnorePlugin(/moment/, /pikaday/),
],
@ -112,7 +109,10 @@ if (IS_PRODUCTION) {
}),
new webpack.DefinePlugin({
'process.env': { NODE_ENV: JSON.stringify('production') }
})
}),
new CompressionPlugin({
asset: '[path].gz[query]',
}),
);
}