vue.config.js 791 B

12345678910111213141516171819202122232425262728
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. assetsDir: 'static', // outputDir的静态资源(js、css、img、fonts)目录
  4. publicPath: './', // 静态资源路径(默认/,如果不改打包后会白屏)
  5. productionSourceMap: false, //不输出map文件
  6. transpileDependencies: true,
  7. lintOnSave: false,
  8. devServer: {
  9. open: true,
  10. host: 'localhost',
  11. port: '8080',
  12. https: false,
  13. hot: "only",
  14. proxy: {
  15. '/api': {
  16. target: 'http://127.0.0.1:8088',
  17. changeOrigin: true,
  18. pathRewrite: {}
  19. }
  20. }
  21. },
  22. // chainWebpack: config => {
  23. // config.plugin('html').tap(args => {
  24. // args[0].title = '四川省公示地价查询平台'
  25. // return args
  26. // })
  27. // }
  28. })