reload browser when hash is changed but no modules was updated

Author: alexander-akaitCreated Sep 4, 2021Updated Feb 29, 2024

@alexander-akait Thanks for the feedback!

I have completely removed the staticOptions and setup the directory for my static files. I also removed wds + src watch content base (old) option. After that, all edited twig files triggers a new compilation, but still no browser reload. With hot: false, it works, weird :thinking:

Then I have set the watchFiles option to ['src/**/*.twig'] with hot: true: it works! Every file change trigger a compilation and browser reload.

Is that configuration looks fine to you or should I share my private repo with you for further check? Thanks a lot mate :wink:

Originally posted by @xavierfoucrier in https://github.com/webpack/webpack-dev-server/issues/2758#issuecomment-902289933

ref: https://github.com/webpack-contrib/copy-webpack-plugin/issues/674

Source: webpack/webpack-dev-server