12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- const { defineConfig } = require("@vue/cli-service");
- const proxy_url = process.env.VUE_APP_PROXY_URL;
- module.exports = defineConfig({
- transpileDependencies: true,
- lintOnSave: false,
- assetsDir: "showviewer",
- productionSourceMap: false,
- publicPath: "./",
- pages: {
- show: "src/pages/show.js",
- showMobile: "src/pages/showMobile.js",
- },
- css: {
- extract: false,
- loaderOptions: {
- scss: {},
- },
- },
- devServer: {
- // port: 443,
- // https: true,
- headers: {
- "Cache-Control": "no-store",
- },
- proxy: {
- "/manage": {
- target: proxy_url,
- changeOrigin: true,
- },
- "/web": {
- target: proxy_url,
- changeOrigin: true,
- },
- "/api": {
- target: process.env.VUE_APP_PROXY_URL_ROOT,
- changeOrigin: true,
- },
- },
- client: {
- overlay: {
- runtimeErrors: (error) => {
- if(error?.message === "ResizeObserver loop completed with undelivered notifications.")
- {
- console.error(error)
- return false;
- }
- return true;
- },
- },
- },
- },
- });
|