false | Object | FunctionThe configs of html-webpack-plugin or html-rspack-plugin can be modified through tools.htmlPlugin.
The built-in html-webpack-plugin plugins can be disabled by set tools.htmlPlugin to false.
By default, Builder will compresses JavaScript/CSS code inside HTML during the production build to improve the page performance. This ability is often helpful when using custom templates or inserting custom scripts.
However, when output.enableInlineScripts or output.enableInlineStyles is turned on, inline JavaScript/CSS code will be repeatedly compressed, which will have a certain impact on build performance. You can modify the default minify behavior by modifying the tools.htmlPlugin.minify configuration.
For detailed usage, please refer to Rsbuild - tools.html.