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
{{ message }}
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
ViteJS lets Rollup handle assets on build and expose the bundle. However on dev, ViteJS transform and inject the css directly for small chunk.
From ViteJS doc:
Output Generation Hooks (except closeBundle) are not called during dev. You can think of Vite's dev server as only calling rollup.rollup() without calling bundle.generate().
A solution could be to catch assets from difference source exposed on dev (because the bundle is empty on dev) :
assets from css via post:css hook
scripts from ?? (need more investigation)
styles from ?? (need more investigation)
I don't know if the support of dev mode is pertinent/necessary. Tell me if you need this or why this is completely unnecessary to do ^^
[EDIT] After reflection, there is no use to this with the behaviour of vite. I close this issue. You can still comment this issue if you think I'm wrong.