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 LinusBorg committed Nov 8, 2017
1 parent 3a21a57 commit 4a81496
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 @@ -73,6 +73,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 4a81496

Please sign in to comment.