When I build my site, I want at the same time to remove all unused files from previous builds and serve the static content with precompressed brotli files.
To remove the unneeded XX.search.min-hash.js, XX.search-data.min-hash.js files I pass --cleanDestinationDir. However this removes also the .br files for unchanged content, and I want to keep such .br files. That is, I want to avoid compressing several times the same hugo-generated content with brotli.
- Please either add mechanism in
--cleanDestinationDir to keep for each file i also the file i.br, or extend hugo to create brotli compressed files.