Commit 4cd3eb96 authored by Mike Greiling's avatar Mike Greiling

only compress assets in production

parent cee957f5
......@@ -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]',
}),
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment