vetur.config.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // vetur.config.js
  2. /** @type {import('vls').VeturConfig} */
  3. module.exports = {
  4. // **optional** default: `{}`
  5. // override vscode settings
  6. // Notice: It only affects the settings used by Vetur.
  7. settings: {
  8. "vetur.useWorkspaceDependencies": true,
  9. "vetur.experimental.templateInterpolationService": true,
  10. },
  11. // **optional** default: `[{ root: './' }]`
  12. // support monorepos
  13. // projects: [
  14. // './packages/repo2', // shorthand for only root.
  15. // {
  16. // // **required**
  17. // // Where is your project?
  18. // // It is relative to `vetur.config.js`.
  19. // root: './packages/repo1',
  20. // // **optional** default: `'package.json'`
  21. // // Where is `package.json` in the project?
  22. // // We use it to determine the version of vue.
  23. // // It is relative to root property.
  24. // package: './package.json',
  25. // // **optional**
  26. // // Where is TypeScript config file in the project?
  27. // // It is relative to root property.
  28. // tsconfig: './tsconfig.json',
  29. // // **optional** default: `'./.vscode/vetur/snippets'`
  30. // // Where is vetur custom snippets folders?
  31. // snippetFolder: './.vscode/vetur/snippets',
  32. // // **optional** default: `[]`
  33. // // Register globally Vue component glob.
  34. // // If you set it, you can get completion by that components.
  35. // // It is relative to root property.
  36. // // Notice: It won't actually do it. You need to use `require.context` or `Vue.component`
  37. // globalComponents: [
  38. // './src/components/**/*.vue'
  39. // ]
  40. // }
  41. // ]
  42. };