vue.config.js 755 B

12345678910111213141516171819202122232425262728293031
  1. const path = require('path')
  2. const resolve =_path=>path.resolve(_path)
  3. module.exports = {
  4. publicPath: process.env.NODE_ENV === 'production'
  5. ? '/h5/'
  6. : '/',
  7. lintOnSave: false,
  8. outputDir: 'h5',
  9. productionSourceMap: false,
  10. // devServer: {
  11. // proxy: {
  12. // '/api': {
  13. // // target: 'http://10.113.233.62:8081/',
  14. // target: 'http://49.232.26.44:8090/',
  15. // ws: true,
  16. // changeOrigin: true,
  17. // pathRewrite: {
  18. // '^/api': ''
  19. // }
  20. // }
  21. // }
  22. // }
  23. configureWebpack: {
  24. resolve: {
  25. alias: {
  26. '@': resolve('src')
  27. }
  28. }
  29. }
  30. }