diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-09 17:26:48 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-16 16:54:49 -0600 |
commit | 4cd3eb96f5d1c94bef3e64d6392b98a49da0bad8 (patch) | |
tree | f37004b57c32621cd2c7b6f04fbfa96418c6bff2 /config/webpack.config.js | |
parent | cee957f56c60649949da72a9ea01b2f6e7b0eb56 (diff) | |
download | gitlab-ce-4cd3eb96f5d1c94bef3e64d6392b98a49da0bad8.tar.gz |
only compress assets in production
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 8 |
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]', + }), ); } |