refactor: keep error logs in quiet mode

This commit is contained in:
Clark Du 2018-08-12 14:26:49 +01:00
parent 937dfe8183
commit ba2b63e131
3 changed files with 12 additions and 3 deletions

View File

@ -191,7 +191,7 @@ Options.from = function (_options) {
} }
if (options.build.quiet === true) { if (options.build.quiet === true) {
consola.clear().add({log: () => {}}) consola.level = 0
} }
if (options.build.stats === 'none' || options.build.quiet === true) { if (options.build.stats === 'none' || options.build.quiet === true) {

View File

@ -82,7 +82,7 @@
"chokidar": "^2.0.4", "chokidar": "^2.0.4",
"compression": "^1.7.3", "compression": "^1.7.3",
"connect": "^3.6.5", "connect": "^3.6.5",
"consola": "^1.4.1", "consola": "^1.4.2",
"css-loader": "^1.0.0", "css-loader": "^1.0.0",
"cssnano": "^4.0.5", "cssnano": "^4.0.5",
"debug": "^3.1.0", "debug": "^3.1.0",

View File

@ -2058,7 +2058,7 @@ connect@^3.6.5:
parseurl "~1.3.2" parseurl "~1.3.2"
utils-merge "1.0.1" utils-merge "1.0.1"
consola@^1.2.0, consola@^1.4.1: consola@^1.2.0:
version "1.4.1" version "1.4.1"
resolved "https://registry.yarnpkg.com/consola/-/consola-1.4.1.tgz#4b1c6259c8db23f51e7cfb68cd383ec5ee298f0e" resolved "https://registry.yarnpkg.com/consola/-/consola-1.4.1.tgz#4b1c6259c8db23f51e7cfb68cd383ec5ee298f0e"
dependencies: dependencies:
@ -2067,6 +2067,15 @@ consola@^1.2.0, consola@^1.4.1:
lodash "^4.17.5" lodash "^4.17.5"
std-env "^1.1.0" std-env "^1.1.0"
consola@^1.4.2:
version "1.4.2"
resolved "https://registry.yarnpkg.com/consola/-/consola-1.4.2.tgz#e61963325abbfded8c4b010da5896aad0b4c92fb"
dependencies:
chalk "^2.3.2"
figures "^2.0.0"
lodash "^4.17.5"
std-env "^1.1.0"
console-browserify@^1.1.0: console-browserify@^1.1.0:
version "1.1.0" version "1.1.0"
resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"