Skip to content

Commit

Permalink
Enable WebPack scope hoisting.
Browse files Browse the repository at this point in the history
This is only enabled for the production build, as it breaks Hot Module
Reloading.
  • Loading branch information
tech4him1 authored and erquhart committed Nov 27, 2017
1 parent 2f75e3a commit ed5bf36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ed5bf36

Please sign in to comment.