feat(cli): add --quiet option to nuxt generate command (#5357)

This commit is contained in:
Franck Abgrall 2019-03-29 15:08:08 +01:00 committed by Pooya Parsa
parent 2d73e8aeba
commit 91f4eb0468

View File

@ -25,6 +25,18 @@ export default {
}
}
},
quiet: {
alias: 'q',
type: 'boolean',
description: 'Disable output except for errors',
prepare(cmd, options, argv) {
// Silence output when using --quiet
options.build = options.build || {}
if (argv.quiet) {
options.build.quiet = true
}
}
},
modern: {
...common.modern,
description: 'Generate app in modern build (modern mode can be only client)',