123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- let targetUrl = "https://mteatest.dayaedu.com";
- module.exports = {
- chainWebpack: (config) => {
- config.devtool("inline-source-map");
- config.output.filename("[name].[hash].js").end();
-
-
-
-
-
-
-
-
-
-
-
- config.plugin("html").tap((args) => {
- args[0].minify = {
- removeAttributeQuotes: false,
- };
- return args;
- });
- },
-
- lintOnSave: true,
-
- runtimeCompiler: false,
-
- productionSourceMap: false,
- configureWebpack: () => {},
-
- devServer: {
- open: process.platform === "darwin",
- host: "0.0.0.0",
- port: 9999,
-
- hotOnly: false,
-
- proxy: {
- "/contracts": {
- target: targetUrl,
- changeOrigin: true,
- ws: true,
- "^/contracts": "/contracts",
- xfwd: true,
- },
- "/api-student": {
- target: targetUrl,
- changeOrigin: true,
- ws: true,
- "^/api-student": "/api-student",
- xfwd: true,
- },
- "/api-cms": {
- target: targetUrl,
- changeOrigin: true,
- ws: true,
- "^/api-cms": "/api-cms",
- xfwd: true,
- },
- "/api-teacher": {
- target: targetUrl,
- changeOrigin: true,
- ws: true,
- "^/api-teacher": "/api-teacher",
- xfwd: true,
- },
- "/api-web": {
- target: targetUrl,
- changeOrigin: true,
- ws: true,
- "^/api-web": "/api-web",
- xfwd: true,
- },
- "/api-auth": {
- target: targetUrl,
- changeOrigin: true,
- ws: true,
- "^/api-auth": "/api-auth",
- xfwd: true,
- },
- "/api-mall-portal": {
- target: targetUrl,
- changeOrigin: true,
- },
- "/api-oa": {
- target: targetUrl,
- changeOrigin: true,
- ws: true,
- "^/api-oa": "/api-oa",
- xfwd: true,
- },
- },
- },
- css: {
- loaderOptions: {
- less: {
- modifyVars: {
-
- blue: "#01C1B5",
-
-
- },
- },
- },
- },
- };
|