vue.config.js 821 B

12345678910111213141516171819202122232425262728293031
  1. let proxy = {
  2. "/api": {
  3. target: "http://192.168.10.26:6001/",
  4. // target: "http://192.168.10.36:6001/",
  5. // target: "http://192.168.10.86:6001/",
  6. changeOrigin: true,
  7. },
  8. "/file": {
  9. target: "http://192.168.10.26:6001/",
  10. // target: "http://192.168.10.36:6001/",
  11. // target: "http://192.168.10.86:6001/",
  12. changeOrigin: true,
  13. },
  14. };
  15. var webpack = require("webpack");
  16. module.exports = {
  17. lintOnSave: process.env.NODE_ENV !== "production" ? true : "error",
  18. devServer: {
  19. proxy,
  20. },
  21. configureWebpack: {
  22. devtool: "source-map",
  23. plugins: [
  24. // Ignore all locale files of moment.js
  25. // TODO: use webpack stats to check if iview locale matters
  26. new webpack.IgnorePlugin(/^\.\/locale$/, /moment|iview$/),
  27. ],
  28. },
  29. transpileDependencies: [/\bvue-awesome\b/],
  30. };