.
This commit is contained in:
35
Web/craco.config.js
Normal file
35
Web/craco.config.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const CracoLessPlugin = require('craco-less')
|
||||
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
devServer: {
|
||||
open: true,
|
||||
port: 6591,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:5566',
|
||||
pathRewrite: {
|
||||
'^/api': ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
{
|
||||
plugin: CracoLessPlugin,
|
||||
options: {
|
||||
lessLoaderOptions: {
|
||||
lessOptions: {
|
||||
javascriptEnabled: true,
|
||||
},
|
||||
},
|
||||
importLoaders: 2
|
||||
},
|
||||
},
|
||||
],
|
||||
webpack: {
|
||||
plugins: [
|
||||
new MonacoWebpackPlugin()
|
||||
]
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user