Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemap is likely to be incorrect #48

Open
mohdlatif opened this issue Nov 28, 2023 · 3 comments
Open

Sourcemap is likely to be incorrect #48

mohdlatif opened this issue Nov 28, 2023 · 3 comments

Comments

@mohdlatif
Copy link

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

image

Also, how to change tw- prefix ?

@sonofmagic
Copy link
Owner

Hi mohdlatif,

  • You can pass option classGenerator.classPrefix to change default tw- prefix.

  • The wrong Soucemap may be a bug. I'll go into this issue when I have time.

@dyaskur
Copy link

dyaskur commented Oct 10, 2024

@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-'
    }
  },

})

@dyaskur
Copy link

dyaskur commented Oct 10, 2024

Ah, it seems the correct config is:

utwm({
      classGenerator: {
        'classPrefix': 'x-'
      }
    })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants