vue.config.js 652 B

1234567891011121314151617181920212223242526272829
  1. const { defineConfig } = require("@vue/cli-service")
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. productionSourceMap: false,
  5. css: {
  6. loaderOptions: {
  7. //全局变量
  8. sass: {
  9. additionalData: `@use "@/assets/variables.scss" as *;`
  10. }
  11. }
  12. },
  13. devServer: {
  14. proxy: {
  15. "/gym": {
  16. target: "https://dev.dayaedu.com",
  17. pathRewrite: {
  18. "^/gym": ""
  19. }
  20. },
  21. "/gyt": {
  22. target: "https://dev.lexiaoya.cn",
  23. pathRewrite: {
  24. "^/gyt": ""
  25. }
  26. }
  27. }
  28. }
  29. })