mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: --modern not trigger modern build
This commit is contained in:
parent
7c4e77ffb9
commit
78de0956cc
@ -16,7 +16,7 @@ export default {
|
||||
...common.modern,
|
||||
description: 'Generate app in modern build (modern mode can be only client)',
|
||||
prepare(cmd, options, argv) {
|
||||
if (argv.modern) {
|
||||
if (argv.modern !== undefined) {
|
||||
options.modern = 'client'
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ export default {
|
||||
type: 'string',
|
||||
description: 'Build/Start app for modern browsers, e.g. server, client and false',
|
||||
prepare(cmd, options, argv) {
|
||||
if (argv.modern) {
|
||||
options.modern = argv.modern
|
||||
if (argv.modern !== undefined) {
|
||||
options.modern = argv.modern || true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user