Replies: 1 comment
-
Hi Andrew! See the Vite overview, which goes into detail about why this is usually a good thing. By using dynamic imports and loading only what the current page needs, you avoid having to bundle the entire app, improving startup time, and greatly improving HMR time. If your app is not taking advantage of page-based splitting and is causing the entire app to be fetched, you can try skipping the Rails proxy, and enabling https so that the browser can leverage http2 allowing all of those requests to use the same connection. The reason this is not a default, is that configuring https correctly is not straightforward. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a reason why for local development my JS imports are not bundled? In staging working fine, but local dev its requesting hundreds of requests and slows down local dev consdierably.
Localhost
Staging
Beta Was this translation helpful? Give feedback.
All reactions