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 09:45:42 +0300
committerMike Greiling <mike@pixelcog.com>2017-03-04 01:47:38 +0300
commit02504f2f9c8f0316b9235121f9677a998136bfc4 (patch)
treeb092689eefc25d54aac3d1504b5dd3fda6ebc534 /config
parent312137c6a5456e0dfdaaaa0f12ecdc1597286c17 (diff)
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: {