Closed fabianwohlfart closed 3 years ago
I suggest you to directly add all the classes you know are dynamic inside the whitelist
option:
purge: {
options: {
safelist: ['ml-1', 'ml-2', 'ml-3', 'ml-4', 'ml-5'],
},
}
thanks for the quick reply. ok, seems like we only have a manual solution here. thanks!
Any chance a future update will address this?
@Atinux Is it considered as a bug?
I don't think no
Version
@nuxtjs/tailwindcss: 3.4.2 nuxt: 2.1412
Reproduction Link
https://github.com/fabianwohlfart/test__tailwind-nuxt-template-string
Steps to reproduce
install run generate run start -> ./pages/index.vue
What is Expected?
»test« is indented
What is actually happening?
»test« is not indented, due to the lack of the »ml« classes
i guess its purgecss not tailwind who is responsible for this? is there a workaround? we have nested data, and i really would like to use a template string, or should i do it somehow else?