最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - How can I externalise my stylesheets and any javascript code generated by vaadin? - Stack Overflow

programmeradmin3浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论