vue.config.js 588 B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. devServer: {
  3. proxy: {
  4. "^/api": {
  5. // target: "http://localhost:4000/",
  6. // target: "http://10.1.1.198:8080/",
  7. // target: "http://192.168.0.100:8080",
  8. // target: "http://seec.yangshan.tech",
  9. // target: "http://seec.seecoder.cn",
  10. target: "http://localhost:8080",
  11. ws: true,
  12. changeOrigin: true
  13. }
  14. },
  15. disableHostCheck: true
  16. },
  17. configureWebpack: {
  18. devtool: "source-map"
  19. },
  20. css: {
  21. loaderOptions: {
  22. sass: {
  23. implementation: require("sass")
  24. }
  25. }
  26. }
  27. };