vuex.js 349 B

1234567891011121314
  1. module.exports = cli => {
  2. cli.injectFeature({
  3. name: 'Vuex',
  4. value: 'vuex',
  5. description: 'Manage the app state with a centralized store',
  6. link: 'https://vuex.vuejs.org/'
  7. })
  8. cli.onPromptComplete((answers, options) => {
  9. if (answers.features.includes('vuex')) {
  10. options.plugins['@vue/cli-plugin-vuex'] = {}
  11. }
  12. })
  13. }