Au build --watch does not refresh the changes

Hi
Today when I execute au build --watch and I make changes after save I go to the Chrome to Refresh the changes but these are not refreshed and I have to execute au build --watch again.

Any idea please?

regards

1 Like

chrome may be caching the bundle, in chrome try going to developer tools > network and check ‘disable cache’, or try ctrl+f5 (cmd+r on mac) to force reload

3 Likes

Hi

The problem is that au build --watch some times when I save the changes does not generate the new bundle. And I have to rebuild it. Sometimes yes sometimes no.

Thanks

1 Like

Are you using docker or a network mounted disk?

1 Like

I’m working in the local disk of my Mac mini

1 Like

Are you using webpack or requirejs/systemjs? Any other special setup? I am curious to reproduce the issue.

1 Like

WebPack and this is something random. Sometimes the build does not, and you never know when it’s going to be good

1 Like

It’s probably some webpack bug, unlikely related to aurelia. You might be able to find something here https://github.com/webpack/watchpack/issues

1 Like