Enable WebPack scope hoisting.
This is only enabled for the production build, as it breaks Hot Module Reloading.
This commit is contained in:
parent
2f75e3a286
commit
ed5bf36edd
@ -27,6 +27,9 @@ module.exports = merge.smart(require('./webpack.base.js'), {
|
||||
NETLIFY_CMS_VERSION: JSON.stringify(require("./package.json").version),
|
||||
}),
|
||||
|
||||
// Combine/hoist module scopes when possibile.
|
||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||
|
||||
// Minify and optimize the JavaScript
|
||||
new UglifyJsPlugin({
|
||||
sourceMap: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user