vue.config.js 766 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. "use strict";
  2. const path = require("path");
  3. function resolve(dir) {
  4. return path.join(__dirname, dir);
  5. }
  6. const name = "nft";
  7. module.exports = {
  8. devServer: {
  9. overlay: {
  10. warnings: false,
  11. errors: true
  12. },
  13. proxy: {
  14. // '/': {
  15. // target: 'http://120.76.231.94:9101/',
  16. // changeOrign: true,
  17. // },
  18. },
  19. },
  20. configureWebpack: {
  21. name: name,
  22. resolve: {
  23. alias: {
  24. "@utils": resolve("utils"),
  25. "@img": resolve("static/img"),
  26. // "@": resolve("src"),
  27. // "@i": resolve("src/api"),
  28. // "@c": resolve("src/components"),
  29. // "@a": resolve("src/assets"),
  30. // "@s": resolve("src/styles"),
  31. // "@u": resolve("src/utils"),
  32. // "@v": resolve("src/pages"),
  33. },
  34. },
  35. },
  36. };