Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lcf8381595's avatar

Split js of inertia app?

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.

0 likes
1 reply

Please or to participate in this conversation.