mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-31 23:50:51 -05:00
13 lines
221 B
JavaScript
13 lines
221 B
JavaScript
module.exports = cli => {
|
|
cli.injectFeature({
|
|
name: 'Vuex',
|
|
value: 'vuex'
|
|
})
|
|
|
|
cli.onPromptComplete((answers, options) => {
|
|
if (answers.features.includes('vuex')) {
|
|
options.vuex = true
|
|
}
|
|
})
|
|
}
|