Static GitHub Issues

[2273] Integrating TailwindCSS into Nuxt SFC

prev: ReferenceError: XMLHttpRequest is not defined
next: nuxt generate是否适用vue1.0项目

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.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1990">#c1990</a>)</em></sub></div>