📦 plugin-rsdoctor
Rsdoctor 插件可以帮助你排除 Docusaurus 站点打包阶段的故障,同时支持 Webpack 和 Rspack。
¥A Rsdoctor plugin can help you troubleshoot the bundling phase of your Docusaurus site, supporting both Webpack and Rspack.
提示
使用它来找出哪个插件或加载器正在减慢打包器的速度,并集中精力优化瓶颈。
¥Use it to figure out which plugin or loader is slowing down the bundler, and focus your efforts on optimizing the bottleneck.
安装
¥Installation
- npm
- Yarn
- pnpm
npm install --save @docusaurus/plugin-rsdoctor
yarn add @docusaurus/plugin-rsdoctor
pnpm add @docusaurus/plugin-rsdoctor
配置
¥Configuration
接受的字段:
¥Accepted fields:
名称 | 类型 | 默认 | 描述 |
---|---|---|---|
rsdoctorOptions | object | {} | Rsdoctor 打包器插件选项,按原样转发 |
配置示例
¥Example configuration
你可以通过插件选项配置此插件。
¥You can configure this plugin through plugin options.
docusaurus.config.js
export default {
plugins: [
[
'rsdoctor',
{
rsdoctorOptions: {
mode: 'lite',
},
},
],
],
};