Sourcemap is likely to be incorrect
I am using Nuxt 3.8
The plugin works fine, however during building I am getting this warning
(unplugin-tailwindcss-mangle plugin) Sourcemap is likely to be incorrect: a plugin (unplugin-tailwindcss-mangle) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
Also, how to change tw- prefix ?
Hi mohdlatif,
-
You can pass option
classGenerator.classPrefixto change defaulttw-prefix. -
The wrong
Soucemapmay be a bug. I'll go into this issue when I have time.
@sonofmagic how to pass classGenerator.classPrefix ?
I tried below config doesn't work:
import { defineConfig } from 'tailwindcss-patch'
export default defineConfig({
patch: {
'classGenerator': {
'classPrefix': 'xxx-'
}
},
})
Ah, it seems the correct config is:
utwm({
classGenerator: {
'classPrefix': 'x-'
}
})