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
How do I make REMIX+VITE to emit CSS as a separate bundle and not inline it in the HTML when the underlying page components uses some CSS-IN-JS solution?
I am using MUI which internally uses Emotion (CSS-IN-JS as its styling engine). Everything works fine including the final rendering. However, the HTML has a huge blob of CSS inlined in the HEAD of the HTML. This CSS is not going to change and therefore I dont want to bloat the HTML for every request from the customer.
How can I make REMIX+VITE to make this CSS not to be inlined in the HEAD. Rather emit it as a separate bundle and linked through LINK tag.
I already tried the below suggestions from community but doesnt work for me
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
-
How do I make REMIX+VITE to emit CSS as a separate bundle and not inline it in the HTML when the underlying page components uses some CSS-IN-JS solution?
I am using MUI which internally uses Emotion (CSS-IN-JS as its styling engine). Everything works fine including the final rendering. However, the HTML has a huge blob of CSS inlined in the HEAD of the HTML. This CSS is not going to change and therefore I dont want to bloat the HTML for every request from the customer.
How can I make REMIX+VITE to make this CSS not to be inlined in the HEAD. Rather emit it as a separate bundle and linked through LINK tag.
I already tried the below suggestions from community but doesnt work for me
Beta Was this translation helpful? Give feedback.
All reactions