add react版前端
This commit is contained in:
28
web-react/craco.config.js
Normal file
28
web-react/craco.config.js
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user