mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-29 10:38:35 -06:00
15 lines
324 B
JavaScript
15 lines
324 B
JavaScript
module.exports = cli => {
|
|
cli.injectFeature({
|
|
name: 'Vuex',
|
|
value: 'vuex',
|
|
description: 'Manage the app state with a centralized store',
|
|
link: 'https://vuex.vuejs.org/'
|
|
})
|
|
|
|
cli.onPromptComplete((answers, options) => {
|
|
if (answers.features.includes('vuex')) {
|
|
options.vuex = true
|
|
}
|
|
})
|
|
}
|