mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +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,
|
...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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user