fix: --modern not trigger modern build

This commit is contained in:
Clark Du 2018-11-08 09:18:56 +00:00
parent 7c4e77ffb9
commit 78de0956cc
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ export default {
...common.modern, ...common.modern,
description: 'Generate app in modern build (modern mode can be only client)', description: 'Generate app in modern build (modern mode can be only client)',
prepare(cmd, options, argv) { prepare(cmd, options, argv) {
if (argv.modern) { if (argv.modern !== undefined) {
options.modern = 'client' options.modern = 'client'
} }
} }

View File

@ -20,8 +20,8 @@ export default {
type: 'string', type: 'string',
description: 'Build/Start app for modern browsers, e.g. server, client and false', description: 'Build/Start app for modern browsers, e.g. server, client and false',
prepare(cmd, options, argv) { prepare(cmd, options, argv) {
if (argv.modern) { if (argv.modern !== undefined) {
options.modern = argv.modern options.modern = argv.modern || true
} }
} }
}, },