vue.config.js 781 B

123456789101112131415161718192021222324252627282930313233
  1. const { defineConfig } = require('@vue/cli-service')
  2. const path = require('path')
  3. function resolve(dir) {
  4. return path.join(__dirname, dir)
  5. }
  6. module.exports = defineConfig({
  7. transpileDependencies: true,
  8. publicPath: "/",
  9. lintOnSave:false,
  10. transpileDependencies: true,
  11. productionSourceMap: false,
  12. // devServer: {
  13. // proxy: {
  14. // '/api': {
  15. // target: 'http://api.mt4crm.net/',
  16. // changeOrigin: true,
  17. // pathRewrite: {
  18. // '^/api': '/'
  19. // }
  20. // },
  21. // }
  22. // },
  23. configureWebpack: {
  24. // provide the app's title in webpack's name field, so that
  25. // it can be accessed in index.html to inject the correct title.
  26. name: 'name',
  27. resolve: {
  28. alias: {
  29. '@': resolve('src')
  30. }
  31. }
  32. }
  33. })