Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-10 02:26:48 +0300
committerMike Greiling <mike@pixelcog.com>2017-02-17 01:54:49 +0300
commit4cd3eb96f5d1c94bef3e64d6392b98a49da0bad8 (patch)
treef37004b57c32621cd2c7b6f04fbfa96418c6bff2 /config
parentcee957f56c60649949da72a9ea01b2f6e7b0eb56 (diff)
only compress assets in production
Diffstat (limited to 'config')
-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]',
+ }),
);
}