Commit 9087ea36 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'move-concatenate-module-plugin' into 'master'

Disable webpack scope hoisting in development

See merge request gitlab-org/gitlab-ce!17942
parents c920d165 907045b2
...@@ -222,9 +222,6 @@ const config = { ...@@ -222,9 +222,6 @@ const config = {
names: ['main', 'common', 'webpack_runtime'], names: ['main', 'common', 'webpack_runtime'],
}), }),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),
// copy pre-compiled vendor libraries verbatim // copy pre-compiled vendor libraries verbatim
new CopyWebpackPlugin([ new CopyWebpackPlugin([
{ {
...@@ -281,6 +278,7 @@ if (IS_PRODUCTION) { ...@@ -281,6 +278,7 @@ if (IS_PRODUCTION) {
minimize: true, minimize: true,
debug: false, debug: false,
}), }),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.optimize.UglifyJsPlugin({ new webpack.optimize.UglifyJsPlugin({
sourceMap: true, sourceMap: true,
}), }),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment