vue.config.js 489 B

1234567891011121314151617181920212223242526
  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. proxy: {
  17. "/api": {
  18. target: "https://app2-jytest.jianyu360.cn/entbase",
  19. changeOrigin: true,
  20. pathRewrite: {
  21. "^/api": ""
  22. }
  23. }
  24. }
  25. }
  26. }