mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
refactor: stats none is same as false
This commit is contained in:
parent
948d56622e
commit
ed321f52c1
@ -183,6 +183,10 @@ Options.from = function (_options) {
|
||||
options.build.optimization.splitChunks.name = true
|
||||
}
|
||||
|
||||
if (options.build.stats === 'none') {
|
||||
options.build.stats = false
|
||||
}
|
||||
|
||||
// TODO: remove when mini-css-extract-plugin supports HMR
|
||||
if (options.dev) {
|
||||
options.build.extractCSS = false
|
||||
|
@ -7,8 +7,13 @@ let nuxt = null
|
||||
|
||||
describe('basic dev', () => {
|
||||
beforeAll(async () => {
|
||||
const config = loadFixture('basic', { buildDir: '.nuxt-dev' })
|
||||
config.dev = true
|
||||
const config = loadFixture('basic', {
|
||||
dev: true,
|
||||
buildDir: '.nuxt-dev',
|
||||
build: {
|
||||
stats: 'none'
|
||||
}
|
||||
})
|
||||
nuxt = new Nuxt(config)
|
||||
new Builder(nuxt).build()
|
||||
port = await getPort()
|
||||
|
@ -6,7 +6,7 @@ export const buildFixture = function buildFixture(fixture) {
|
||||
test: true,
|
||||
minimalCLI: true,
|
||||
build: {
|
||||
stats: false
|
||||
stats: 'errors-only'
|
||||
}
|
||||
})
|
||||
const nuxt = new Nuxt(config)
|
||||
|
Loading…
Reference in New Issue
Block a user