12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- let targetUrl = 'http://mteadev.dayaedu.com'
- module.exports = {
- publicPath: './',
-
- productionSourceMap: false,
-
-
- chainWebpack: config => {
- config.plugin('html').tap(args => {
- args[0].minify = {
- removeAttributeQuotes: false
- }
- return args
- })
- },
- 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',
-
-
- }
- }
- }
- },
- }
|