Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow doesn't trigger a new production bundle upon changes in imported CSS files #19215

Open
mshabarov opened this issue Apr 22, 2024 · 0 comments

Comments

@mshabarov
Copy link
Contributor

mshabarov commented Apr 22, 2024

Description of the bug

Vaadin Flow builds a new production bundle if there is a change in frontend/themes/my-theme/styles.css:

Detected changed frontend files:
 - themes/my-theme/styles.css

In the same time, it doesn't build a bundle, when the changes are in the imported CSS file, e.g.:
themes/my-theme/styles.css:

@import url('./shared/layout.css');

and these changes are not reflected in the application.

Note: if an application uses a default pre-compiled prod bundle, the changes are reflected and added to a bundle.

Workaround: force production build or delete prod bundle from src/main/bundles/

Expected behavior

Production bundle should take into account changes in imported CSS files.

Minimal reproducible example

Any Flow application that requires a new production bundle.
themes/my-theme/styles.css:

@import url('./shared/layout.css');

themes/my-theme/shared/layout.css:

body {
    background-color: #ffff00;
}

Versions

  • Vaadin / Flow version: 24.3.9 (and most likely later)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Normal Priority (P2)
Status: 🪵Product backlog
Development

No branches or pull requests

1 participant