Skip to content

[JIT] prefix as a function breaks some classes #5765

Closed
@quentinlagache

Description

@quentinlagache

What version of Tailwind CSS are you using?
2.2.15

Reproduction URL
https://play.tailwindcss.com/GlwsJggWJP?file=config

Describe your issue
When using prefix as a function to apply prefix only on some classes, it seems that classes with one character base name like m-2, p-5, w-full and negative ones like -rotate-6 are not generated.

Add prefix (selector) { return ''; } to tailwind config is breaking the output.

expected

current

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions