Skip to content

Typography unused code not removed with JIT (tw 3) #235

@istr

Description

@istr

What version of @tailwindcss/typography are you using?

v0.5.0

What version of Node.js are you using?

v16.13.2

What browser are you using?

Chrome, Brave, Firefox

What operating system are you using?

Linux

Reproduction repository

https://github.com/istr/tw-typo-nojit

Describe your issue

The typography plugin seems to always add all classes, regardless of the content that the tailwind 3 JIT detects.
This leads to exactly the kind of bloat tw / JIT wanted to avoid.

To reproduce:

git clone https://github.com/istr/tw-typo-nojit.git ; cd tw-typo-nojit/ ; npm install ; npm start

Since index.html does not contain blockquote it is expected that dist/output.css does not contain the CSS for that.
This is only an example, lots of unused variables and unused code is introduced by the plugin.

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