Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Dev mode #15

@Applelo

Description

@Applelo

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.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions