修改styles.scss后,Vaadin 8不重新创建styles.css。如果我完全删除了style.css,应用程序就不会创建这个文件,并且在浏览器中得到一个404错误。
应用程序不以生产模式运行,我使用的是主题。根据文档,应创建该文件:
If the on-the-fly compilation does not seem to work, ensure that your build script
has not generated a pre-compiled CSS file. If a styles.css file is found by the
servlet, the compilation is skipped. Disable theme compilation in your local
development environment and delete the existing styles.css file to enable on-the-fly
compilation.请告诉我如何强迫Vaadin创建styles.css吗?
发布于 2022-09-22 08:00:39
您可以使用来自vaadin-maven-plugin的Maven目标vaadin-maven-plugin强制编译样式CSS文件。在开发模式下,这并不是您通常想要做的事情,因为您希望通过即时主题编译来帮助您完成这一任务。通常,根本的问题是主题scss文件包含语法错误,这会阻碍编译的成功。
https://stackoverflow.com/questions/73801687
复制相似问题