TehShrike / svelte-preprocess-postcss

Use PostCSS to preprocess your styles in Svelte components
25 stars 4 forks source link

PostCSS with SapperJs and TailwindCSS #1

Closed ansarizafar closed 6 years ago

ansarizafar commented 6 years ago

I want to use TailwindCSS with SapperJs and remove unused css classes. Is it possible to use svelte-preprocess-postcss with Sapper. Is there any example available?

TehShrike commented 6 years ago

Looks like there are a few PostCSS plugins that claim to do that https://www.postcss.parts/?searchTerm=unused

Otherwise, I'm not sure how TailwindCSS specifically relates to this, unless you want to look at the source code to figure out how to make your own Tailwind preprocessor. It's relatively simple.