Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit 0880d9b

Browse files
awamwangLinusBorg
authored andcommitted
add HashedModuleIdsPlugin when build (vuejs-templates#870)
1 parent 079e92e commit 0880d9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

template/build/webpack.prod.conf.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ var webpackConfig = merge(baseWebpackConfig, {
6767
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
6868
chunksSortMode: 'dependency'
6969
}),
70+
// keep module.id stable when vender modules does not change
71+
new webpack.HashedModuleIdsPlugin(),
7072
// split vendor js into its own file
7173
new webpack.optimize.CommonsChunkPlugin({
7274
name: 'vendor',

0 commit comments

Comments
 (0)