mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-21 06:39:56 -06:00
13 lines
229 B
JavaScript
13 lines
229 B
JavaScript
module.exports = cli => {
|
|
cli.injectFeature({
|
|
name: 'Router',
|
|
value: 'router'
|
|
})
|
|
|
|
cli.onPromptComplete((answers, options) => {
|
|
if (answers.features.includes('router')) {
|
|
options.router = true
|
|
}
|
|
})
|
|
}
|