Used to set the entry modules for building.
The usage of source.entry
is similar to the entry
option in Rspack. The main difference is that Rsbuild will register html-webpack-plugin for each entry in source.entry
to generate the corresponding HTML files.
The generated directory structure is as follows:
If you do not need to generate HTML files, you can set tools.htmlPlugin to false
to disable this behavior.
source.entry
also supports Rspack's entry description object. For example:
For the complete usage of the description object, please refer to Rspack - Entry Description Object.