You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does not work if the resource (background.jpg in our case) is not mentioned in any CSS file within /theme/my-theme/ folder. But it does work, if adding the reference to that resource (whatever the target element is), for example:
caalador
changed the title
Java-side style is not applied if no resource reference in CSS file
Java-side resource is not available if resource not referenced in a CSS file
Dec 11, 2020
Here we should not that we should only copy files that are not handled by webpack through the file-loader.
This is especially a challenge in development mode where the files are not copied to the disk, but are served by the running devServer.
#9776)
Copies static resources from theme folder to a webpack output folder, so that to make them available from Java pages.
Fixes: #9622
# Conflicts:
# flow-server/src/main/resources/plugins/application-theme-plugin/theme-copy.js
# flow-tests/test-themes/frontend/themes/app-theme/styles.css
# flow-tests/test-themes/src/test/java/com/vaadin/flow/uitest/ui/theme/ThemeIT.java
#9776)
Copies static resources from theme folder to a webpack output folder, so that to make them available from Java pages.
Fixes: #9622
# Conflicts:
# flow-server/src/main/resources/plugins/application-theme-plugin/theme-copy.js
# flow-tests/test-themes/frontend/themes/app-theme/styles.css
# flow-tests/test-themes/src/test/java/com/vaadin/flow/uitest/ui/theme/ThemeIT.java
Changing the style on java side, like below
does not work if the resource (
background.jpg
in our case) is not mentioned in any CSS file within/theme/my-theme/
folder. But it does work, if adding the reference to that resource (whatever the target element is), for example:It impacts both the dev and production mode.
The text was updated successfully, but these errors were encountered: