summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-10 00:45:42 -0600
committerMike Greiling <mike@pixelcog.com>2017-03-03 16:47:38 -0600
commit02504f2f9c8f0316b9235121f9677a998136bfc4 (patch)
treeb092689eefc25d54aac3d1504b5dd3fda6ebc534 /config
parent312137c6a5456e0dfdaaaa0f12ecdc1597286c17 (diff)
downloadgitlab-ce-02504f2f9c8f0316b9235121f9677a998136bfc4.tar.gz
use deterministic module IDs in production and development
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 13273902b0e..d06f7733945 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -83,6 +83,10 @@ var config = {
assets: true
}),
new webpack.IgnorePlugin(/moment/, /pikaday/),
+ // use deterministic module ids in all environments
+ IS_PRODUCTION ?
+ new webpack.HashedModuleIdsPlugin() :
+ new webpack.NamedModulesPlugin(),
],
resolve: {