gotailwindcss / tailwind

A Tailwind CSS implementation in Go
MIT License
71 stars 6 forks source link

idea/suggestion for serving tailwind css #4

Open SirMetathyst opened 3 years ago

SirMetathyst commented 3 years ago

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

bradleypeabody commented 3 years ago

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.

linkerlin commented 2 years ago

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