I seem to get this too often. Ideally I shouldn’t get this at all, since the only custom thing I have is the main css.
I don’t get it on every restart, but just now for instance I got it after I restarted without any changes.
Did you ever geta response on this. It’s almost 2 years now. I routinely run into it during development. I am closer to Test Driven Development than big-bang, though. Nonetheless, it’s pretty common for me to have this pop up a couple times a day, and not go away unless I let it spin for 10 minutes or so and then restart the server and reload the page. I wonder what I’m doing wrong. I don’t think I’m doing anything unusually except an occasional CSS change. I’d hate to hear every CSS change will result in a 10 minute wait followed by a restart and reload the page. CSS used to be the easiest changes to make.
Two points:
-
When developing locally, in development mode CSS changes are hot deployed, so front-end build should not be triggered. Are you using production mode build when developing locally?
-
In Vaadin 25 we have changed the theme system to prefer loading the CSS from resources dynamically and not including it in bundle at all.
The newest Vaadin 24 versions also do have a concept of prebuilt bundle, which is used if you are not having any custom components or add-ons going to frontend bundle. You can also commit the frontend bundle chunks in your version control, which will speed up the process with your colleagues or CI build.
I don’t know. I’m trying to transition from a Vaadin 7 application to Vaadin 24, and somewhere along the line I was supposed to become an expert on how to build a Vaadin 24 application. What happened to compiling java code and deploying a war? Is the build process documented somewhere? Is it possible tailscale is creating my problem?
If only customized thing is CSS, it is possible to load it from resources using @StyleSheet instead of using @Theme when using Vaadin 25 and prebuild bundle. That actually eliminates also the installation of Node and will make the thus build much faster.
You are probably looking for this: How to deploy Vaadin to Production