1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- const { defineConfig } = require("@vue/cli-service");
- const proxy_url = process.env.VUE_APP_PROXY_URL;
- const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
- module.exports = defineConfig({
- transpileDependencies: true,
- lintOnSave: false,
- assetsDir: "showviewer",
- productionSourceMap: false,
- publicPath: "./",
- configureWebpack: {
- plugins: [new NodePolyfillPlugin()],
- },
- 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,
- },
- },
- },
- });
|