fix: disable splitChunks.name:false in spa mode

This commit is contained in:
Clark Du 2018-03-14 16:21:41 +08:00
parent 7bc3ac501b
commit 8893388af7
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9

View File

@ -82,9 +82,9 @@ module.exports = function webpackClientConfig() {
// Optimization
config.optimization = {
splitChunks: {
chunks: 'all'
// TODO: uncomment after https://github.com/jantimon/html-webpack-plugin/issues/878 solved
// name: this.options.dev
chunks: 'all',
// TODO: remove spa after https://github.com/jantimon/html-webpack-plugin/issues/878 solved
name: this.options.dev || this.options.mode === 'spa'
}
}