mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: disable splitChunks.name:false in spa mode
This commit is contained in:
parent
7bc3ac501b
commit
8893388af7
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user