enable scope hoisting only in produciton (it interferes with HMR)
This commit is contained in:
parent
c628f8f426
commit
907045b268
|
@ -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) {
|
||||||
minimize: true,
|
minimize: true,
|
||||||
debug: false,
|
debug: false,
|
||||||
}),
|
}),
|
||||||
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue