html.outputStructure
- Type:
'flat' | 'nested' - Default:
'flat'
Define the directory structure of the HTML output files.
Example
By default, the structure of HTML files in the dist directory is flat:
You can set html.outputStructure to nested:
rsbuild.config.ts
After rebuild, the directory structure of the HTML files is:
If you want to set the parent path of the HTML files, use the output.distPath.html config.

