Skip to content

[JIT] Using vite does not update the generated CSS #4073

@ghost

Description

What version of Tailwind CSS are you using?

v2.1.1

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

vite 2.1.5

What version of Node.js are you using?

15.14.0

What browser are you using?

Chromium

What operating system are you using?

Linux, macOS

Reproduction repository

https://github.com/nachtjasmin/vite-tailwind-jit-bug

Describe your issue

When I am running vite in development mode, using vite or yarn dev, the page of my svelte component is correctly refreshed. However, the CSS does not change.

E.g. in the reproduction repo, when changing the background of the div in App.svelte from bg-blue-500 to bg-red-500 does not do anything, reverting this change shows the old css and therefore a blue rectangle. When restarting the build server, the correct css is generated.

Could be related to #3950.

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