vue.config.js 683 B

1234567891011121314151617181920212223242526272829
  1. const { defineConfig } = require('@vue/cli-service')
  2. const AutoImport = require('unplugin-auto-import/webpack')
  3. module.exports = defineConfig({
  4. devServer: {
  5. port: 9001
  6. },
  7. transpileDependencies: true,
  8. lintOnSave: false,
  9. chainWebpack: config => {
  10. config
  11. .plugin('html')
  12. .tap(args => {
  13. args[0].title = 'AIGC-poc'
  14. return args
  15. })
  16. },
  17. configureWebpack: {
  18. plugins: [
  19. // require('unplugin-auto-import/webpack')({
  20. // imports: ['vue', 'vue-router'],
  21. // eslintrc: {
  22. // enabled: true,
  23. // filepath: './.eslintrc-auto-import.json',
  24. // globalsPropValue: true
  25. // }
  26. // })
  27. ]
  28. }
  29. })