Enable WebPack scope hoisting.

This is only enabled for the production build, as it breaks Hot Module
Reloading.
This commit is contained in:
Caleb 2017-11-22 18:16:56 -07:00 committed by Shawn Erquhart
parent 2f75e3a286
commit ed5bf36edd

View File

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