mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-30 11:18:55 -06:00
15 lines
325 B
JavaScript
15 lines
325 B
JavaScript
module.exports = cli => {
|
|
cli.injectFeature({
|
|
name: 'Router',
|
|
value: 'router',
|
|
description: 'Structure the app with dynamic pages',
|
|
link: 'https://router.vuejs.org/'
|
|
})
|
|
|
|
cli.onPromptComplete((answers, options) => {
|
|
if (answers.features.includes('router')) {
|
|
options.router = true
|
|
}
|
|
})
|
|
}
|