mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Merge remote-tracking branch 'upstream/dev' into feat/jest
This commit is contained in:
commit
cb9d286238
@ -16,8 +16,6 @@ import VueSSRClientPlugin from './plugins/vue/client'
|
||||
const debug = Debug('nuxt:build')
|
||||
debug.color = 2 // Force green color
|
||||
|
||||
const isWindows = /^win/.test(process.platform)
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Webpack Client Config
|
||||
@ -95,7 +93,7 @@ export default function webpackClientConfig() {
|
||||
config.optimization.splitChunks = {
|
||||
chunks: 'all',
|
||||
// TODO: remove spa after https://github.com/jantimon/html-webpack-plugin/issues/878 solved
|
||||
name: this.options.dev || (this.options.mode === 'spa' && isWindows),
|
||||
name: this.options.dev || this.options.mode === 'spa',
|
||||
|
||||
// Explicit cache groups
|
||||
cacheGroups: {
|
||||
@ -132,7 +130,7 @@ export default function webpackClientConfig() {
|
||||
}
|
||||
|
||||
// Create additional runtime chunk for cache boosting
|
||||
config.optimization.runtimeChunk = true
|
||||
// config.optimization.runtimeChunk = true
|
||||
|
||||
// --------------------------------------
|
||||
// Dev specific config
|
||||
|
Loading…
Reference in New Issue
Block a user