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
I'm building an HTML editor with Tailwind support. The editor should allow my users to add any Tailwind class at runtime. Tailwind scans the source code and generates CSS based on the classes used. In my case, the classes are used later and, therefore, are not included in the CSS file.
At the moment, I'm using an iframe and loading Tailwind through the CDN. However, this is less than optimal, and I have many problems bundling the iframe src code with vite.
Do you have any idea how to optimize this process?
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
-
I'm building an HTML editor with Tailwind support. The editor should allow my users to add any Tailwind class at runtime. Tailwind scans the source code and generates CSS based on the classes used. In my case, the classes are used later and, therefore, are not included in the CSS file.
At the moment, I'm using an iframe and loading Tailwind through the CDN. However, this is less than optimal, and I have many problems bundling the iframe src code with vite.
Do you have any idea how to optimize this process?
Beta Was this translation helpful? Give feedback.
All reactions