Skip to content

Commit

Permalink
Add scope hoisting in the prod config (vuejs-templates#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnivade authored and frandiox committed Dec 23, 2017
1 parent c7b7fc3 commit c3f7741
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template/build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const webpackConfig = merge(baseWebpackConfig, {
}),
// keep module.id stable when vender modules does not change
new webpack.HashedModuleIdsPlugin(),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),
// split vendor js into its own file
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
Expand Down

0 comments on commit c3f7741

Please sign in to comment.