enable scope hoisting only in produciton (it interferes with HMR)

This commit is contained in:
Mike Greiling 2018-03-22 14:10:38 -05:00
parent c628f8f426
commit 907045b268
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 1 additions and 3 deletions

View File

@ -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,
}),