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')
|
const debug = Debug('nuxt:build')
|
||||||
debug.color = 2 // Force green color
|
debug.color = 2 // Force green color
|
||||||
|
|
||||||
const isWindows = /^win/.test(process.platform)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Webpack Client Config
|
| Webpack Client Config
|
||||||
@ -95,7 +93,7 @@ export default function webpackClientConfig() {
|
|||||||
config.optimization.splitChunks = {
|
config.optimization.splitChunks = {
|
||||||
chunks: 'all',
|
chunks: 'all',
|
||||||
// TODO: remove spa after https://github.com/jantimon/html-webpack-plugin/issues/878 solved
|
// 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
|
// Explicit cache groups
|
||||||
cacheGroups: {
|
cacheGroups: {
|
||||||
@ -132,7 +130,7 @@ export default function webpackClientConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create additional runtime chunk for cache boosting
|
// Create additional runtime chunk for cache boosting
|
||||||
config.optimization.runtimeChunk = true
|
// config.optimization.runtimeChunk = true
|
||||||
|
|
||||||
// --------------------------------------
|
// --------------------------------------
|
||||||
// Dev specific config
|
// Dev specific config
|
||||||
|
Loading…
Reference in New Issue
Block a user