vue.config.js 610 B

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