tailwind icon indicating copy to clipboard operation
tailwind copied to clipboard

idea/suggestion for serving tailwind css

Open SirMetathyst opened this issue 4 years ago • 2 comments

This is a cool project but what I would have wanted is have the html templates parsed and then generate a css file with the tailwind classes that were used then serve that to the browser. What are your thoughts on this idea? That way you can use the tailwind classes directly in the html as usual

SirMetathyst avatar May 31 '21 15:05 SirMetathyst

This is partially implemented. Have a look at twpurge. It will scan your HTML and then trim down the CSS output to only what's needed.

bradleypeabody avatar Jun 01 '21 16:06 bradleypeabody

There is a project which can render gcss on the fly. Maybe the tailwind can send a PR to algernon ?

linkerlin avatar Jul 15 '22 10:07 linkerlin