Skip to content

Tailwind JIT do not generate class with slash after it #6358

Closed
@Foprta

Description

What version of Tailwind CSS are you using?

v2.2, v3

What build tool (or framework if it abstracts the build tool) are you using?

angular: 12.2

What version of Node.js are you using?

v16.13.0

What browser are you using?

Chrome

What operating system are you using?

Windows, Linux

Reproduction URL

https://github.com/Foprta/tailwind-repr

npm ci
npm run build:lib
npm run start

Text with text-blue-500 is not blue

Describe your issue

Compiled angular library in node_modules have code:

image

Our purge paths are : ['./node_modules/our-angular-lib/**/*.js']

And it does not generate classes with a slash in the end, like highligthed tw-bg-gray-400.

If i create one more tw-bg-gray-400 right before the existing one, JIT will generate it.

tailwindcss: 2.2.19

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