Skip to content

Commit 744c375

Browse files
committedJul 18, 2018
fix: disable chunk sorting in html-webpack-plugin
close #1669
1 parent 5c90017 commit 744c375

File tree

1 file changed

+4
-2
lines changed
  • packages/@vue/cli-service/lib/config

1 file changed

+4
-2
lines changed
 

‎packages/@vue/cli-service/lib/config/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ module.exports = (api, options) => {
6767
// more options:
6868
// https://github.com/kangax/html-minifier#options-quick-reference
6969
},
70-
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
71-
chunksSortMode: 'dependency'
70+
// default sort mode uses toposort which cannot handle cyclic deps
71+
// in certain cases, and in webpack 4, chunk order in HTML doesn't
72+
// matter anyway
73+
chunksSortMode: 'none'
7274
})
7375
}
7476

0 commit comments

Comments
 (0)
Please sign in to comment.