mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
refactor: change quiet log mode after options validated
This commit is contained in:
parent
c55f213743
commit
09188dd173
@ -25,6 +25,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Dirs
|
// Dirs
|
||||||
|
srcDir: undefined,
|
||||||
buildDir: '.nuxt',
|
buildDir: '.nuxt',
|
||||||
nuxtDir,
|
nuxtDir,
|
||||||
nuxtAppDir: path.resolve(nuxtDir, 'lib', 'app'),
|
nuxtAppDir: path.resolve(nuxtDir, 'lib', 'app'),
|
||||||
|
@ -190,10 +190,6 @@ Options.from = function (_options) {
|
|||||||
options.build.optimization.splitChunks.name = true
|
options.build.optimization.splitChunks.name = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.build.quiet === true) {
|
|
||||||
consola.level = 0
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options.build.stats === 'none' || options.build.quiet === true) {
|
if (options.build.stats === 'none' || options.build.quiet === true) {
|
||||||
options.build.stats = false
|
options.build.stats = false
|
||||||
}
|
}
|
||||||
@ -213,5 +209,9 @@ Options.from = function (_options) {
|
|||||||
options.build.transpile = [].concat(options.build.transpile || [])
|
options.build.transpile = [].concat(options.build.transpile || [])
|
||||||
.map(module => module instanceof RegExp ? module : new RegExp(module))
|
.map(module => module instanceof RegExp ? module : new RegExp(module))
|
||||||
|
|
||||||
|
if (options.build.quiet === true) {
|
||||||
|
consola.level = 0
|
||||||
|
}
|
||||||
|
|
||||||
return options
|
return options
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user