Skip to content

[v4] vite build --watch only compile html classes right on the init run #14106

Closed
@KartoffelToby

Description

@KartoffelToby

What version of Tailwind CSS are you using?

v4

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

Plain vite Projekt with css/html Input files in rollup config

What version of Node.js are you using?

v20.11.0

What browser are you using?

Chrome

What operating system are you using?

Linux Debian

Describe your issue

I have some css files ans HTML files. The HTML contains some tailwindcss classes like p-2 etc. If i run vite build --watch the first build is correct. And the p-2 css Definition is in the Output css. But if i change the classes in the HTML it recompiles but dont get the new classes. If i use @apply in my source css file the Compiler works every time. So must be a bug in the HTML stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions