@x.render/build-react-admin-webpack-plugin
v1.15.0
Published
plug-in for render-builder to compile backend projects in react
Downloads
7
Readme
@x.render/build-react-admin-webpack-plugin
介绍
render-builder 的插件,用于在 React 中编译后端项目
使用
npm i @x.render/build-react-admin-webpack-plugin -D
在 render-builder 配置文件中使用以下配置:
{
"builder": "webpack",
"presets": ["@x.render/build-react-component-webpack-plugin"]
}
or
{
"builder": "webpack",
"presets": [["@x.render/build-react-admin-webpack-plugin",options]]
}
Options
| 名称 | 类型 | 必填 | 默认值 | 描述 |
| ----------- | --------- | -------- | ---------- | --------------------------------------------------------------------------------------------------------------- |
| splitChunks | Object
| No | | refer to optimizationsplitchunks |
| useAnalyzer | Boolean
| No | false | refer to css-minimizer-webpack-plugin |
该插件还支持以下插件的所有配置: