I’m developing a spring boot Vaadin application (version - 24.6.0) where I want externalized my stylesheets in order to make it more secure for restricted production deployments. Currently, I have:
- Added custom styles in custom-dashboard-view.css
- Mapped it to style.css through @import
- Specified a custom theme “dashboard-app” in Application.java
- Applied custom classes in CustomDashboardView.java
- Built the app through maven vaadin:build-frontend goal
The styles are working correctly, but I can still see all the CSS class content in the html code through browser’s developer tools, even after externalizing the stylesheets.
#vaadin #java #spring-boot