Skip to content

Commit

Permalink
fix: disable chunk sorting in html-webpack-plugin
Browse files Browse the repository at this point in the history
close #1669
  • Loading branch information
yyx990803 committed Jul 18, 2018
1 parent 5c90017 commit 744c375
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@vue/cli-service/lib/config/app.js
Expand Up @@ -67,8 +67,10 @@ module.exports = (api, options) => {
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency'
// default sort mode uses toposort which cannot handle cyclic deps
// in certain cases, and in webpack 4, chunk order in HTML doesn't
// matter anyway
chunksSortMode: 'none'
})
}

Expand Down

0 comments on commit 744c375

Please sign in to comment.