Replies: 1 comment
-
I've found myself in the same situation more or less. I'm wanting to experiment with CSSOM manipulation with JS but during dev mode, the CSS is inlined in a style tag so I can't actually test out my CSSOM manipulation without building for production. I'm searching and reading trying to figure out how use |
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
-
Have a question about dev mode, possibly related to how CSS is handled when HMR is enabled.
I have an index.html like this:
I'm noticing that when I run
vite
,index.css
is actually being served as some JS, probably for the sake of HMR. Is there a way to exempt this asset from that transformation, so that it is just a static resource/ normal<link>
of a CSS file? If so, is it possible to do that, without disabling HMR overall? I need to keep HMR enabled because I'm using a plugin that doesn't work in dev mode when HMR is disabled.Beta Was this translation helpful? Give feedback.
All reactions