Skip to content

Adding or removing Tailwind classes in Java code does not result in new production bundle #22724

@sissbruecker

Description

@sissbruecker

Description of the bug

Flow does not infer that adding or removing Tailwind classes in Java code requires recompiling the Tailwind CSS and thus building a new production bundle. As such, after the first prod bundle is built any change to class names in Java code results in broken styling as the respective CSS for those classes is missing.

Expected behavior

Flow should probably always build a new prod bundle when Tailwind is enabled.

Minimal reproducible example

  • Download a starter with v25
  • Add the CSS class bg-lime-100 to an element
  • Run mvn install
  • Change the CSS class to bg-lime-200
  • Run mvn install
  • Start the app from the built JAR file
  • Observe that the element does not have a background color

Versions

  • Vaadin / Flow version: 25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    🔖 High Priority (P1)

    Status

    🪵Product backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions