Level 102
You can use manualChunks in rollup to split files manually
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I created a new app by using laravel 9 + breeze inertia (SSR). But when I run the speed test by using https://pagespeed.web.dev/, I got this warning: Reduce unused JavaScript
Looks like Vite generated a file named "appXXXX.js" file. And that is the file need to split..
I noticed that laravel mix have a function named "extract()" can do that, but how can I do it by suing Vite?
Thanks.
Please or to participate in this conversation.