vue.config.js 571 B

1234567891011121314151617181920212223242526272829
  1. // 配置手册: https://cli.vuejs.org/zh/config/#vue-config-js
  2. const { defineConfig } = require("@vue/cli-service");
  3. module.exports = defineConfig({
  4. transpileDependencies: true,
  5. // publicPath: './',
  6. devServer: {
  7. port: 8036,
  8. proxy: {
  9. "/system/": {
  10. target: process.env.VUE_APP_DOMAIN,
  11. changeOrigin: true,
  12. },
  13. },
  14. client: {
  15. overlay: false,
  16. },
  17. },
  18. css: {
  19. loaderOptions: {
  20. less: {
  21. lessOptions: {
  22. javascriptEnabled: true,
  23. math: "always",
  24. },
  25. },
  26. },
  27. },
  28. });