Skip to content

classNameReplacer not working for me #167

@niklasgrewe

Description

@niklasgrewe

Hi, thanks for this plugin.
I want to use the classNameReplacer in my NextJS App, but it doesn't work for me. I configure the plugin like this:

module.exports = {
  plugins: [
    require('tailwindcss-pseudo-elements')({
      emptyContent: true,
      classNameReplacer: {
        'hover:before:text-black': 'hbt',
      },
    }),
  ],
}

🚫 doesn't work

<div className="hbt">My Container</div>

✅ it works

<div className="hover:before:text-black">My Container</div>

So where is my mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions