123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- let targetUrl = 'http://192.168.3.48:8000'
- module.exports = {
-
-
- chainWebpack: () => {},
- configureWebpack: () => {},
-
- devServer: {
- open: process.platform === 'darwin',
- host: '0.0.0.0',
- port: 9999,
- https: false,
- 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
- }
- },
- },
- css: {
- loaderOptions: {
- less: {
- modifyVars: {
-
- blue: '#14928A',
-
-
- }
- }
- }
- },
- }
|