vue.config.js 790 B

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = {
  2. publicPath: "/entpc",
  3. productionSourceMap: false,
  4. lintOnSave: false,
  5. css:{
  6. loaderOptions:{
  7. sass: {
  8. prependData: `@import "@/style/global_variable.scss";`// 全局引入
  9. },
  10. }
  11. },
  12. devServer: {
  13. open: true,
  14. port: "8086",
  15. hot: true,
  16. disableHostCheck: true,
  17. proxy: {
  18. "/api": {
  19. // target: "https://app2-jytest.jianyu360.cn",
  20. target: "http://192.168.20.241:813",
  21. // target: "http://127.0.0.1:812",
  22. // target:'http://192.168.20.51:815/entbase',
  23. // target:'http://192.168.20.51:813/entdataexport',
  24. // target:'http://192.168.20.214:812/entniche',
  25. changeOrigin: true,
  26. ws: true,
  27. pathRewrite: {
  28. "^/api": ""
  29. }
  30. },
  31. }
  32. }
  33. }