Skip to content

Tailwind ships tons of unused boilerplate CSS #7539

@l-Fingon-l

Description

@l-Fingon-l

Discussed in #7538

Originally posted by l-Fingon-l February 20, 2022
Is it just me or does Tailwind in fact ship a lot of useless CSS?

The main page clearly states:
image

Tailwind automatically removes all unused CSS when building for production

However, it does not seem to be the case for me. I have just literally tried copying the example above but ended up with a huge pile of unpurged and basically unused utility boilerplate CSS:
image

8KB:
image

The --minify option just eliminates the spaces but all the unnecessary CSS is still there.

Is it just me doing something wrong or is it a bug? Would love to hear any ideas from you

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