From 91f4eb0468eacbae87af8937b61fe2a36166c970 Mon Sep 17 00:00:00 2001 From: Franck Abgrall Date: Fri, 29 Mar 2019 15:08:08 +0100 Subject: [PATCH] feat(cli): add `--quiet` option to nuxt generate command (#5357) --- packages/cli/src/commands/generate.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/cli/src/commands/generate.js b/packages/cli/src/commands/generate.js index e20a183d05..c36c6b31a1 100644 --- a/packages/cli/src/commands/generate.js +++ b/packages/cli/src/commands/generate.js @@ -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)',