You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tested it and it seems that the class syntax works but Pug syntax doesn't. p(class="text-red-600") My Text will show correctly a red text.
But p.text-red-600 My Text doesn't show the red text
I've tested it and it seems that the class syntax works but Pug syntax doesn't. p(class="text-red-600") My Text will show correctly a red text. But p.text-red-600 My Text doesn't show the red text
The problem comes from require('pug') in getDefaultExtractors function.
One solution is to add the following to your nuxt.config.ts import { PugExtractor } from 'vite-plugin-windicss
And then
I don't know if it's bug or it's not implemented but in Nuxt3 pug templates classes doesn't work in any case
.bg-red-500.p-2 Text
or
doesn't work, only html
for repro just take any actual nuxt3 + windicss sandbox add
pug
andpug-plain-loader
dependencies and convert template to pug. it won't load any classEdit:
seems to work, it didn't few days ago or I din't notice it works 🤷🏼♂️
The text was updated successfully, but these errors were encountered: