vue.config.js 731 B

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