You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app has multiple Views (pages), each one linked to their Layout which in turn is linked to a set of .css and .js files.
I understood that Vite can bundle and serve these assets dynamically to each page, but I'm not sure how do I config vite.config.js to achieve that.
For example, here is the structure of my pages:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My app has multiple Views (pages), each one linked to their Layout which in turn is linked to a set of .css and .js files.
I understood that Vite can bundle and serve these assets dynamically to each page, but I'm not sure how do I config vite.config.js to achieve that.
For example, here is the structure of my pages:
Is any of the following options correct for vite.config.js?
Option #1:
Option #2: [3]
Many thanks.
[1] https://laravel.com/docs/11.x/vite#main-content
[2] https://vitejs.dev/guide/features.html
[3] https://stackoverflow.com/questions/70522494/multiple-entry-points-in-vite
Beta Was this translation helpful? Give feedback.
All reactions