summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-25 02:49:55 -0500
committerMike Greiling <mike@pixelcog.com>2017-05-25 12:50:24 -0500
commit5c0f506deb3fb6910714e0441efe6bfcfc29f4ad (patch)
tree1cb0260a4dd5cddb7c3904f9f36b169d1aadf733 /config
parent4f6ca7bc9c211e5498b0f56fdcdb0ed9dc5bd483 (diff)
downloadgitlab-ce-5c0f506deb3fb6910714e0441efe6bfcfc29f4ad.tar.gz
add NameAllModulesPlugin to cover shortcomings of NamedModulesPlugin
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 42024739fe9..c26f3b5063f 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -5,6 +5,7 @@ var path = require('path');
var webpack = require('webpack');
var StatsPlugin = require('stats-webpack-plugin');
var CompressionPlugin = require('compression-webpack-plugin');
+var NameAllModulesPlugin = require('name-all-modules-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
@@ -126,8 +127,9 @@ var config = {
jQuery: 'jquery',
}),
- // use deterministic module ids
+ // assign deterministic module ids
new webpack.NamedModulesPlugin(),
+ new NameAllModulesPlugin(),
// create cacheable common library bundle for all vue chunks
new webpack.optimize.CommonsChunkPlugin({