Techiio-author
Started by Sagar RabidasOct 28, 2021

Open
How to remove Next.js chunk

3 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 3 VIEWES SHARE

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

Techiio-commentatorArchana Behera replied a month ago0 likes0 dislikes

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.

You must be Logged in to reply
Trending Technologies
15
Software40
DevOps47
Frontend Development24
Backend Development20
Server Administration17
Linux Administration26
Data Center24
Sentry24
Terraform23
Ansible83
Docker70
Penetration Testing16
Kubernetes21
NGINX20
JenkinsX17
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance