123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- "use strict";
- const path = require("path");
- const pathSrc = path.resolve(__dirname, "../src");
- let proxyTable = {
- "/icore.icp.web/pass/v1/sysusers/user/token": {
-
-
- target: "http://172.16.33.166:9001/v1/sysusers/user/token",
- changeOrigin: true,
- pathRewrite: {
- "^/icore.icp.web/pass/v1/sysusers/user/token": "/"
- }
- },
- "/icore.icp.web/pass/v1": {
-
- target: "http://172.16.33.166:9001/v1",
- changeOrigin: true,
- pathRewrite: {
- "^/icore.icp.web/pass/v1": "/"
-
- }
- },
- "/icore.icp.web/pass/auth/login": {
-
- target: "http://172.16.33.166:9001/auth/login",
- changeOrigin: true,
- pathRewrite: {
- "^/icore.icp.web/pass/auth/login": ""
- }
- },
- "/icore-api/v1": {
- target: "http://172.16.33.161:8088/api/v1/truckTms",
-
-
- ws: true,
- pathRewrite: {
- "^/icore-api/v1": ""
- }
- },
- "/icore-api": {
- target: "http://172.16.33.166:9001",
- changeOrigin: true,
- pathRewrite: {
- "^/icore-api": "/"
- }
- },
- "/icore.icp.web/pass/act": {
- target: "http://172.16.33.166:8095",
- changeOrigin: true,
- pathRewrite: {
- "^/icore.icp.web/pass/act": "/"
- }
- },
-
- "/api/v1/cd": {
- target: "http://172.16.33.161:8083",
- ws: true,
- pathRewrite: {
- "^/api/v1/cd": "/api/v1/cd"
- }
- },
-
- "/icore.icp.web/game/v1": {
- target: "http://172.16.33.166:9002",
- ws: true,
- pathRewrite: {
- "^/icore.icp.web/game/v1": "/v1"
- }
- },
-
-
-
-
- "/api/v1": {
- target: "http://172.16.33.166:80",
-
-
- ws: true,
- pathRewrite: {
- "^/api/v1": "/api/v1"
- }
- },
- "/views/api/v1": {
-
- target: "http://172.16.33.166:80",
-
- ws: true,
- pathRewrite: {
- "^/views/api/v1": "/api/v1"
- }
- },
- "/icore.icp.web/pass/logout": {
- target: "http://172.16.33.166:9001/logout",
- changeOrigin: true,
- pathRewrite: {
- "^/icore.icp.web/pass/logout": "/"
- }
- }
- };
- let dist = "../dist";
- if (pathSrc.indexOf("node_modules") > -1) {
- dist = "../../../dist";
- let proxyTableGet = require("../../../cors.js").proxyTable;
- for (let i in proxyTableGet) {
- proxyTable[i] = proxyTableGet[i];
- }
- }
- module.exports = {
- dev: {
-
- assetsSubDirectory: "static",
- assetsPublicPath: "/",
- proxyTable: proxyTable,
-
- host: "localhost",
- port: 8802,
- autoOpenBrowser: false,
- errorOverlay: true,
- notifyOnErrors: true,
- poll: false,
-
-
-
- useEslint: true,
-
-
- showEslintErrorsInOverlay: false,
-
-
-
-
-
-
- cacheBusting: true,
- cssSourceMap: true
- },
- css: {
- loaderOptions: {
- sass: {
- prependData: '\n @import "@/styles/variables.scss";\n '
- }
- }
- },
- build: {
-
- index: path.resolve(__dirname, dist + "/index.html"),
-
- assetsRoot: path.resolve(__dirname, dist),
- assetsSubDirectory: "static",
- assetsPublicPath: "../",
-
- productionSourceMap: false,
-
- devtool: "#source-map",
-
-
-
-
- productionGzip: false,
- productionGzipExtensions: ["js", "css"],
-
-
-
-
- bundleAnalyzerReport: process.env.npm_config_report
- }
- };
|