summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-03-22 14:10:38 -0500
committerMike Greiling <mike@pixelcog.com>2018-03-22 14:10:38 -0500
commit907045b268c977bc97f2f6d54980ae4c65efa19c (patch)
tree4f75c4ab285f583197b7ae1a51f8aae0ab84c751
parentc628f8f42651a74462eddd71ab53bd1784f9a8bf (diff)
downloadgitlab-ce-907045b268c977bc97f2f6d54980ae4c65efa19c.tar.gz
enable scope hoisting only in produciton (it interferes with HMR)
-rw-r--r--config/webpack.config.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index f5fb7de6176..213b05e653c 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -222,9 +222,6 @@ const config = {
names: ['main', 'common', 'webpack_runtime'],
}),
- // enable scope hoisting
- new webpack.optimize.ModuleConcatenationPlugin(),
-
// copy pre-compiled vendor libraries verbatim
new CopyWebpackPlugin([
{
@@ -281,6 +278,7 @@ if (IS_PRODUCTION) {
minimize: true,
debug: false,
}),
+ new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
}),