Using eleventy-img, all images go to the base directory. #3615
Unanswered
nandorocker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm implementing HTML transform on my site. According to documentation, optimized images should go to the "project-relative path to the output image directory." I assume this means:
original path:
src/assets/images
-> output path:_site/assets/images
However, when I use the setup below, all files end up in the root folder of my site (_site). I tried using
outputDir: "assets/images/"
but that makes it simply stop processing the images. Finally, I usedurlPath: "./assets/images/"
and weirdly it works, but it still just puts all images in that directory, without any sub-folders.The documentation is unclear, at least for me. Can anyone help me understand how this setup should be done?
Beta Was this translation helpful? Give feedback.
All reactions