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
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-05-25 10:49:55 +0300
committerMike Greiling <mike@pixelcog.com>2017-05-25 20:50:24 +0300
commit5c0f506deb3fb6910714e0441efe6bfcfc29f4ad (patch)
tree1cb0260a4dd5cddb7c3904f9f36b169d1aadf733 /config/webpack.config.js
parent4f6ca7bc9c211e5498b0f56fdcdb0ed9dc5bd483 (diff)
add NameAllModulesPlugin to cover shortcomings of NamedModulesPlugin
Diffstat (limited to 'config/webpack.config.js')
-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({