next-optimized-images icon indicating copy to clipboard operation
next-optimized-images copied to clipboard

unused bundled js size increased after I add more than 1,000 logo images.

Open swarchen opened this issue 3 years ago β€’ 1 comments

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

Does anyone have the same issue?

swarchen avatar Jan 30 '21 03:01 swarchen

I have the same issue. Even files with no reference whatsoever in the code are being added to the build.

edgardz avatar Nov 02 '21 20:11 edgardz