Yunan
Yunan

Reputation: 43

SCSS style got purged with @nuxtjs/tailwindcss

I've got a nuxt project where I use @nuxtjs/tailwindcss and vue-formulate. I've declared a few styles for vue-formulate in a scss file and it works great when I do nuxt --spa but when I try to generate the project using nuxt generate and serve it, the style does not apply at all. I've done a few tests and it seems to be coming from @nuxtjs/tailwindcss. When I remove it from buildModules in my nuxt config, it works fine. How can I keep that style without having to remove the purgecss step?

Upvotes: 0

Views: 812

Answers (2)

Yunan
Yunan

Reputation: 43

Updating nuxt and @nuxt/tailwindcss fixed the issue.

Upvotes: 0

Ralph Ceriaco
Ralph Ceriaco

Reputation: 31

take a look for whitelisting the classes that "vue-formulate" are using.

purge css whitelisting

Upvotes: 1

Related Questions