prompts.js 469 B

12345678910111213
  1. // these prompts are used if the plugin is late-installed into an existing
  2. // project and invoked by `vue invoke`.
  3. const { chalk } = require('@vue/cli-shared-utils')
  4. module.exports = [
  5. {
  6. name: 'historyMode',
  7. type: 'confirm',
  8. message: `Use history mode for router? ${chalk.yellow(`(Requires proper server setup for index fallback in production)`)}`,
  9. description: `By using the HTML5 History API, the URLs don't need the '#' character anymore.`
  10. }
  11. ]