mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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
|
||||
srcDir: undefined,
|
||||
buildDir: '.nuxt',
|
||||
nuxtDir,
|
||||
nuxtAppDir: path.resolve(nuxtDir, 'lib', 'app'),
|
||||
|
@ -190,10 +190,6 @@ Options.from = function (_options) {
|
||||
options.build.optimization.splitChunks.name = true
|
||||
}
|
||||
|
||||
if (options.build.quiet === true) {
|
||||
consola.level = 0
|
||||
}
|
||||
|
||||
if (options.build.stats === 'none' || options.build.quiet === true) {
|
||||
options.build.stats = false
|
||||
}
|
||||
@ -213,5 +209,9 @@ Options.from = function (_options) {
|
||||
options.build.transpile = [].concat(options.build.transpile || [])
|
||||
.map(module => module instanceof RegExp ? module : new RegExp(module))
|
||||
|
||||
if (options.build.quiet === true) {
|
||||
consola.level = 0
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user