vue.config.js 564 B

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