mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-31 15:41:15 -05:00
14 lines
290 B
JavaScript
14 lines
290 B
JavaScript
module.exports = cli => {
|
|
cli.injectFeature({
|
|
name: 'Progressive Web App (PWA) Support',
|
|
value: 'pwa',
|
|
short: 'PWA'
|
|
})
|
|
|
|
cli.onPromptComplete((answers, options) => {
|
|
if (answers.features.includes('pwa')) {
|
|
options.plugins['@vue/cli-plugin-pwa'] = {}
|
|
}
|
|
})
|
|
}
|