mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-02 18:09:38 -05:00
fix: Restore --offline option for legacy vue init API (#1605)
This commit is contained in:
committed by
Guillaume Chau
parent
226291c1e9
commit
d8b06bbaea
@@ -121,6 +121,7 @@ program
|
||||
.command('init <template> <app-name>')
|
||||
.description('generate a project from a remote template (legacy API, requires @vue/cli-init)')
|
||||
.option('-c, --clone', 'Use git clone when fetching remote template')
|
||||
.option('--offline', 'Use cached template')
|
||||
.action(() => {
|
||||
loadCommand('init', '@vue/cli-init')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user