-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
gatsby-image generates images for unused components #26561
Comments
Did you clear out any cache? What you want is being tracked here. Unrelated to |
of course, i always clear cache |
Clearing the cache will require processing all images again. When developing you can just use Subscribe to the issue I linked you to, that is what you're wanting for the most part, to avoid unnecessary image processing while developing. For now you can comment out the graphql queries that you don't want to run, and that will skip them. |
Closing as duplicate of #24822 |
to improve development start time sometimes i remove all the pages in page folder expect one i will work on, i expect that gatsby image will render images only for those components that it used in that page.js file and its children, but it doesn't, gatsby will render same amount of images, same size of images as it was all pages anyway
Expected result
don't generate images with gatsby image for unused components
Actual result
doesn't matter whether you develop with just single file in page folder (meaninig you deloping only 1 page) or 50 gatsby-image will generate all the images into public folder
The text was updated successfully, but these errors were encountered: