vue.config.js 597 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @Author: PoJun
  3. * @Date: 2023-05-14 16:21:33
  4. * @LastEditors: PoJun
  5. * @LastEditTime: 2023-09-13 18:07:58
  6. * @Message: Nothing
  7. */
  8. module.exports = {
  9. devServer: {
  10. open: true,
  11. proxy: {
  12. "/api": {
  13. target: process.env.VUE_APP_BASE_API,
  14. changeOrigin: true,
  15. pathRewrite: { "^/api": "" },
  16. },
  17. },
  18. },
  19. configureWebpack: () => {
  20. if (process.env.NODE_ENV === "production") {
  21. return {
  22. plugins: [],
  23. };
  24. }
  25. },
  26. chainWebpack: () => {},
  27. };