Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Configuration Bug #2

Open
rossberenson opened this issue Jan 25, 2023 · 3 comments
Open

Image Configuration Bug #2

rossberenson opened this issue Jan 25, 2023 · 3 comments

Comments

@rossberenson
Copy link

Great starter for 11ty. I did a few updates for my setup that I'd love to share with you one day, when I have some time. I added globbing for scss and js so you don't need to manually add each component scss and js to the main files.

When building and watching development, images are getting processed The below error shows in terminal.

Eleventy Error [11ty] Benchmark 612ms 95% 27× (Configuration) "image" Nunjucks Shortcode

I looked at the js for the image shortcode and it looks like the correct properties are being provided the the 11ty Image plugin. Are you coming across this error?

@einomi
Copy link
Owner

einomi commented May 6, 2023

Great starter for 11ty. I did a few updates for my setup that I'd love to share with you one day, when I have some time. I added globbing for scss and js so you don't need to manually add each component scss and js to the main files.

Thank you!

When building and watching development, images are getting processed The below error shows in terminal.

Eleventy Error [11ty] Benchmark 612ms 95% 27× (Configuration) "image" Nunjucks Shortcode

I looked at the js for the image shortcode and it looks like the correct properties are being provided the the 11ty Image plugin. Are you coming across this error?

Yes, I saw this error in the terminal too. I think it's related to the circumstance that generating images using 11ty-image takes some time. So it's probably more like a warning than an error, if I get it right.

@rossberenson
Copy link
Author

I also spent some time trying to add caching to images, so they don't need to be regenerated every time but nothing I tried was any faster. haha. Oh well. Having code to see if the image exists takes just as long as the build just creating the image variants.

@einomi
Copy link
Owner

einomi commented Oct 4, 2023

I will try to find a way to optimise image generation. Because yeah, my team and I faced an issue before where the image generation took ages for pages with really big amounts of images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants