2021-03-26 23:18:24 +08:00
|
|
|
const CracoLessPlugin = require('craco-less');
|
|
|
|
|
|
|
|
module.exports = {
|
2022-01-29 21:52:04 +08:00
|
|
|
devServer: {
|
|
|
|
proxy: {
|
2022-02-04 20:00:40 +08:00
|
|
|
'/api': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
'/swagger': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
'/files': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
'/.well-known/openid-configuration': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
2022-04-04 00:09:04 +08:00
|
|
|
},
|
|
|
|
'/cas/serviceValidate': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
'/cas/proxyValidate': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
'/cas/proxy': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
|
|
|
'/cas/validate': {
|
|
|
|
target: 'http://localhost:8000',
|
|
|
|
changeOrigin: true,
|
2022-02-04 20:00:40 +08:00
|
|
|
}
|
2022-01-29 21:52:04 +08:00
|
|
|
},
|
|
|
|
},
|
2021-03-26 23:18:24 +08:00
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
plugin: CracoLessPlugin,
|
|
|
|
options: {
|
|
|
|
lessLoaderOptions: {
|
|
|
|
lessOptions: {
|
2022-02-04 20:00:40 +08:00
|
|
|
modifyVars: {'@primary-color': 'rgb(45,120,213)'},
|
2021-03-26 23:18:24 +08:00
|
|
|
javascriptEnabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|