add react版前端

This commit is contained in:
2021-06-11 14:48:04 +08:00
parent fe1f2fb821
commit bf2fc2b01a
137 changed files with 18445 additions and 0 deletions

28
web-react/craco.config.js Normal file
View File

@@ -0,0 +1,28 @@
const CracoLessPlugin = require('craco-less');
module.exports = {
devServer: {
open: true,
port: 6591,
proxy: {
'/api': {
target: 'http://localhost:5566',
pathRewrite: {
'^/api': ''
}
}
}
},
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
javascriptEnabled: true,
},
},
},
},
],
};