'flat' | 'nested'
'flat'
Define the directory structure of the HTML output files.
By default, the structure of HTML files in the dist
directory is flat
:
/dist
└── [name].html
You can set html.outputStructure
to nested
:
export default {
html: {
outputStructure: 'nested',
},
};
After rebuild, the directory structure of the HTML files is:
/dist
└── [name]
└── index.html
If you want to set the parent path of the HTML files, use the output.distPath.html config.