Skip to content
Snippets Groups Projects
Unverified Commit 907045b2 authored by Mike Greiling's avatar Mike Greiling
Browse files

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

parent c628f8f4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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([
{
Loading
Loading
@@ -281,6 +278,7 @@ if (IS_PRODUCTION) {
minimize: true,
debug: false,
}),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.optimize.UglifyJsPlugin({
sourceMap: true,
}),
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment