next-optimized-images
next-optimized-images copied to clipboard
unused bundled js size increased after I add more than 1,000 logo images.
As title. I've been using something like this everywhere in my project.
<img src={require(`../public/images/company_logos/${site.logo}?size=200`)} />
When I visited one of the company pages on my site. I loaded all the optimized company_logo into one single bundled js. Which marked as unused(see the image below).
![ζͺε 2021-01-30 δΈε11 54 53](https://user-images.githubusercontent.com/11629463/106346438-20648b80-62f2-11eb-98db-af74fddc7da6.png)
Does anyone have the same issue?
I have the same issue. Even files with no reference whatsoever in the code are being added to the build.