Home

Issue: 2273

Integrating TailwindCSS into Nuxt SFC

[issue link]

I’ve got tailwind working with PurgeCSS with Nuxt. But I am unable to get @apply to work in Vue Single File Components.

The only way around this is to put everything in my main.scss. And the consequence of this is I lose the ability for code splitting in the SFC.

Anyone got an idea how to fix this?

Adding @tailwind utilities; does it but it adds the whole utility into server-bundle.json on yarn build hence bloating the built files.

This question is available on Nuxt.js community (#c1990)