mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
Merge remote-tracking branch 'upstream/dev' into feat/esm
This commit is contained in:
commit
d4f0a6f59a
@ -22,7 +22,7 @@ test_script:
|
||||
- npm --version
|
||||
- yarn --version
|
||||
# run tests
|
||||
- yarn test-appveyor
|
||||
- yarn test
|
||||
|
||||
# Don't actually build.
|
||||
build: off
|
||||
|
@ -17,8 +17,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
|
||||
@ -94,7 +92,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: {
|
||||
@ -131,7 +129,7 @@ export default function webpackClientConfig() {
|
||||
}
|
||||
|
||||
// Create additional runtime chunk for cache boosting
|
||||
config.optimization.runtimeChunk = true
|
||||
// config.optimization.runtimeChunk = true
|
||||
|
||||
// CSS extraction
|
||||
const extractCSS = this.options.build.extractCSS
|
||||
|
@ -46,8 +46,7 @@
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"test": "npm run lint && nyc ava --fail-fast -v -T 60000 test/ -- && nyc report --reporter=html",
|
||||
"test-appveyor": "yarn test",
|
||||
"test": "npm run lint && nyc ava -v test -- && nyc report --reporter=html",
|
||||
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
||||
"lint": "eslint --ext .js,.mjs,.vue bin/* build/ lib/ test/ examples/",
|
||||
"precommit": "npm run lint",
|
||||
|
Loading…
Reference in New Issue
Block a user