summaryrefslogtreecommitdiff
path: root/config/webpack.config.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-09 17:26:48 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-16 16:54:49 -0600
commit4cd3eb96f5d1c94bef3e64d6392b98a49da0bad8 (patch)
treef37004b57c32621cd2c7b6f04fbfa96418c6bff2 /config/webpack.config.js
parentcee957f56c60649949da72a9ea01b2f6e7b0eb56 (diff)
downloadgitlab-ce-4cd3eb96f5d1c94bef3e64d6392b98a49da0bad8.tar.gz
only compress assets in production
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 01c1a5bfb99..9fb7f18e30f 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -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]',
+ }),
);
}