Struggling with Slow Asset Updates in Frappe Docker Dev Setup

I’m developing Frappe apps using a .devcontainer setup with Frappe Docker. I’m running the project using bench start.

The issue is: whenever I make changes in example.js (which is included via app_include_js), those changes do not reflect immediately. I have to run bench build every time, and only then the updates appear.

Even though I’ve confirmed that developer_mode is enabled in site_config.json, it’s still not reloading automatically.

Running bench build each time is frustrating because it takes more than 100 seconds to complete. It really slows down development and breaks focus.

Is there any way to improve this workflow? Please help me fix this.

Note:
I’m using frappe 14

This works fine for some cases

image

  • Try in incognito mode

Been running into a similar problem. There’s a “watch” process that’s supposed to be watching for code changes in order to make them available right away. It used to work for me, I could see it reacting (in the output from the “bench start” command, I think). As it is now, when I call “bench start”, I can see that process starting up:

14:51:12 watch.1 | Watching for changes...

But then I don’t see any reactions from it when I modify the main CSS file for my custom app.

There is a warning popping up right before the watch process starts (“caniuse-lite is outdated”) and I may look into this, but that warning has always been there, even back when the watch process worked.

(Edit:) Also, forgot to add: clearing the browser cache doesn’t work, and neither does any call to the “clear-cache” or “clear-website-cache” bench commands.