I am working Next.js, Reactjs project. I need to take away chunk js documents from _next/static/chunks folder due to the
fact lighthouse displaying do away with unused js. Is that this feasible to put off all bite documents.
1 Replies
You should be careful removing those chunks as it can break your build. Those files are a result of code splitting for performance. They are autogenerated on every build. So you will need to manually delete them on every build, but again, it's not recommended to do so.
Lighthouse only test the page you are currently on so you might not be using those chunks on that page but on another page.