Prevent chunks from being loaded on irrelevant pages
Unanswered
andrewscofield posted this in #help-forum
I have a very obscure chunk being loaded on every page of my site. Its for a page that I gave a unique template in a directory that would have otherwise been generated statically. For example,
/products/[...sku].js generates my product pages, but I created one called /products/unique-sku.js and excluded that sku from being pre-generated. My issue is that the chunk for /products/unique-sku is being included in every page load of my site. Anyway to tell next.js not to do that?