vue.config.js 842 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. const { defineConfig } = require("@vue/cli-service");
  2. const proxy_url = process.env.VUE_APP_PROXY_URL;
  3. module.exports = defineConfig({
  4. transpileDependencies: true,
  5. lintOnSave: false,
  6. assetsDir: "showviewer",
  7. productionSourceMap: false,
  8. publicPath: "./",
  9. pages: {
  10. show: "src/pages/show.js",
  11. showMobile: "src/pages/showMobile.js",
  12. },
  13. css: {
  14. extract: false,
  15. loaderOptions: {
  16. scss: {},
  17. },
  18. },
  19. devServer: {
  20. // port: 443,
  21. // https: true,
  22. headers: {
  23. "Cache-Control": "no-store",
  24. },
  25. proxy: {
  26. "/manage": {
  27. target: proxy_url,
  28. changeOrigin: true,
  29. },
  30. "/web": {
  31. target: proxy_url,
  32. changeOrigin: true,
  33. },
  34. "/api": {
  35. target: process.env.VUE_APP_PROXY_URL_ROOT,
  36. changeOrigin: true,
  37. },
  38. },
  39. },
  40. });