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

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

Open
swarchen opened this issue Jan 30, 2021 · 1 comment

Comments

@swarchen
Copy link

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?

@edgardz
Copy link

edgardz commented Nov 2, 2021

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

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