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. 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. Goal is to enhance security by removing the usage of internal stylesheets by using vaadin external stylesheets support.
Currently, I have followed the below steps:
- 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.
How can I externalise my stylesheets and any javascript code generated by vaadin?
Thanks