Replies: 4 comments 2 replies
-
I ran into this issue today where I was adding to the existing style css in dev, but in prod I need to create a new stylesheet to add dynamic css. |
Beta Was this translation helpful? Give feedback.
-
I ran into this issue today where I was adding to the existing style css in dev, but in prod I need to create a new stylesheet to add dynamic css. |
Beta Was this translation helpful? Give feedback.
-
Thoughts:
|
Beta Was this translation helpful? Give feedback.
-
While this feature is not implemented, there is a workaround to keep inline styles in output html files. Just change the case of a style tag that you want to keep (for example to |
Beta Was this translation helpful? Give feedback.
-
User questions/requests for feature:
Quoting discord user Anoesj:
Regarding file/line:
vite/packages/vite/src/node/plugins/html.ts
Line 292 in 2351d79
Quoting @patak-dev:
TODO:
<style attribute>
where attribute could maybe bevite-preserve
,critical
,keep
,inline
,no-extract
, etc...?Beta Was this translation helpful? Give feedback.
All reactions