DEV Community

Discussion on: Angular 8/9/10 + Tailwind CSS Guide

Collapse
 
airaamane profile image
airaamane

But you can indeed use @apply inside a component's style file, what am I missing? could you talk us through the issue you're facing please.

Thread Thread
 
egorpavlikhin profile image
Egor Pavlikhin

Unfortunately not, because tailwind is built through custom webpack process, adding component's styles to that is difficult and not supported.

Thread Thread
 
airaamane profile image
airaamane • Edited

I have actually just checked and this works fine for me, using scss, postcss-loader for webpack, and "tailwindcss": "^1.4.4".
dev-to-uploads.s3.amazonaws.com/i/...

sorry new here don't know why i cant attach photos.

Thread Thread
 
hohnzy profile image
Jan Dvorak

Same for me. Works just fine when I've followed the implementation described in tis article.