nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt
https://tailwindcss.nuxtjs.org
MIT License
1.6k stars 180 forks source link

Custom background color is not displayed in published versions #809

Closed bbhxwl closed 3 months ago

bbhxwl commented 3 months ago

Version

@nuxtjs/tailwindcss: ^6.11.2 nuxt: ^3.10.2

Set the background color, which can be displayed in dev mode, but cannot be displayed in the official version released Can only npm run dev, cannot npm run build

class="item flex flex-col px-2 py-1 bg-[#29B1C7] rounded"
bbhxwl commented 3 months ago

The reason is because nuxt purge is used, why is it not compatible?

ineshbose commented 3 months ago

Can you provide a reproduction please?

bbhxwl commented 3 months ago

Can you provide a reproduction please?

I understand, it's a bug that combines nuxt-purgecss.

Do you know how I can prevent him from covering the styles of h1~h6?

ineshbose commented 3 months ago

Answered in #812 👍