Is there a setting that enables CSS in a Vaadin Project? I find that sometimes the changes I make in the .csss file load and sometimes they don't without any obvious reason. I tried clearing the cookies in my browser, compiling the theme, setting productionMode to both "false and "true", and nothing makes any difference.
Asked
Active
Viewed 54 times
0
-
Cleaning tomcat work directory is not helping either – Eight Rice Mar 30 '18 at 09:04
-
How is you application deployed? Make sure that the css file is generated and deployed, if this is, then a F5 in the browser can help – André Schild Mar 30 '18 at 10:07
-
It's definitely not a matter of pressing a button. – Eight Rice Mar 30 '18 at 10:30
-
How is you application deployed? Make sure that the css file is generated and deployed to your servlet engine. Is the new css file there or not? – André Schild Mar 30 '18 at 10:32
-
You can manually recompile the theme, or delete the generated CSS. When NOT in production mode, the `SCSS` is compiled on the fly if the `CSS` does not exist, so it's probably a matter of "_caching_". – Morfic Mar 30 '18 at 11:34
-
I did manually recompile the theme and also cleared the cache, but changes are still not loading. I'm not in production mode, and my development environment is Eclipse with Tomcat. I don't know how to check if the css file loads or not. It's definitely there in the project structure and some entries are loaded, but the more recent ones aren't. Seems totally random – Eight Rice Mar 30 '18 at 19:51
-
What browser are you using? In Chrome Dev Tools, there's an option to not cache when you've got it open. I find that normally works best for me. – Jay Mar 30 '18 at 20:52
-
For testing, you can add a CSS style class and check in browser if it's there. For instance, in Firefox you can show the full CSS file via inspection. – Steffen Harbich Mar 31 '18 at 07:30