Skip to content

Tailwind doesn't play nicely with CSS Modules #226

@lucaschen

Description

@lucaschen

Trying to use Tailwind with Webpack and css-loader, modules turned on; doesn't seem to work.

All Tailwind classes become localised. The following doesn't work:

:global {
  @tailwind preflight;

  @tailwind utilities;
}

Currently using a workaround by including Tailwind inside of a separate file (and hence a separate rule), but it'd be nice if this could be addressed somehow.

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