I have content in the form of a page bundle, and in the page resources I have various large image files in different image formats. When rendering the site, these images get resized to a more Web-sensible size and converted into WebPs, but in my resulting output directory the WebPs are included along with the original files (e.g., there is both a
Is it possible to only output the resized files (rather than also including the raw originals) using Hugo itself, or will I need to manually run script over the resulting folder to delete them?
I did try adding
'blog\/posts\/[^/]+\/images\/[^.]+\.(jpe?g|png)' to my
config.yml, but it didn’t seem to do anything—I take it is for excluding files from processing rather than the output dir.