You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`[Rspress v2] The "builderPlugins" option has been renamed to "builderConfig.plugins", please update your config accordingly (https://rspress.rs/api/config/config-build#builderconfigplugins).\n`,
57
+
`
58
+
export default defineConfig({
59
+
${picocolors.redBright(
60
+
` builderPlugins: [
61
+
pluginFoo()
62
+
],`,
63
+
)}
64
+
${picocolors.greenBright(` builderConfig: {
65
+
plugins: [
66
+
pluginFoo()
67
+
],
68
+
},`)}
69
+
});`,
70
+
);
71
+
process.exit(1);
72
+
}
73
+
}
74
+
47
75
/**
48
76
* Possible reasons for printing "ssg: false" and some troubleshooting guidelines for users.
After enabling this config, Rspress will check the links in the document based on the conventional routing table. If there is an unreachable link, the build will throw an error and exit.
Copy file name to clipboardExpand all lines: packages/document/docs/en/guide/advanced/extend-build.mdx
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ export default defineConfig({
22
22
});
23
23
```
24
24
25
-
Rspress also provides the [builderPlugins](/api/config/config-build#builderplugins) config to register Rsbuild plugins. You can leverage Rsbuild's extensive plugin ecosystem to enhance and extend your build capabilities.
25
+
Rspress also provides the [builderConfig.plugins](/api/config/config-build#builderconfigplugins) config to register Rsbuild plugins. You can leverage Rsbuild's extensive plugin ecosystem to enhance and extend your build capabilities.
26
26
27
27
For example, add Google analytics through [rsbuild-plugin-google-analytics](https://github.com/rspack-contrib/rsbuild-plugin-google-analytics):
28
28
@@ -31,12 +31,14 @@ import { defineConfig } from 'rspress/config';
0 commit comments