1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- const proxy = {
- "/api/ecs_core": {
- target: process.env.VUE_APP_CORE_HOST_URL || "http://192.168.10.39:8000",
- changeOrigin: true
- },
- "/api/ecs_exam_work": {
- target:
- process.env.VUE_APP_EXAM_WORK_HOST_URL || "http://192.168.10.39:8001",
- changeOrigin: true
- },
- "/api/ecs_ques": {
- target:
- process.env.VUE_APP_QUESTIONS_HOST_URL || "http://192.168.10.39:8008",
- changeOrigin: true
- },
- "/api/ecs_oe_admin": {
- target: process.env.VUE_APP_OE_HOST_URL || "http://192.168.10.39:8013",
- changeOrigin: true
- },
- "/api/ecs_marking": {
- target: process.env.VUE_APP_MARKING_HOST_URL || "http://192.168.10.39:8004",
- changeOrigin: true
- },
- "/api/ecs_data_process": {
- target:
- process.env.VUE_APP_DATA_PROCESS_HOST_URL || "http://192.168.10.39:8005",
- changeOrigin: true
- },
- "/api/ecs_prt": {
- target: process.env.VUE_APP_PRINT_HOST_URL || "http://192.168.10.39:8009",
- changeOrigin: true
- }
- };
- var webpack = require("webpack");
- module.exports = {
- devServer: {
- proxy
- },
- configureWebpack: {
- plugins: [
- // Ignore all locale files of moment.js
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
- ]
- },
- transpileDependencies: [/\bvue-awesome\b/]
- };
|