You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I change a PHP file in my project, dev-server reloads the page. That is really annoying, because when I create a syntax error, dev-server (/usr/bin/yarn encore dev-server) crashes:
[webpack-dev-server] 404s will fallback to '/index.html'
3% setup watch run RouteDump_Watchnode:internal/errors:984
const err = new Error(message);
^
Hi @stephanvierkant, that's really weird, by default we do not watch PHP files for reload.
Can you provide us the whole webpack.config.js file and your project structure?
Every time I change a PHP file in my project, dev-server reloads the page. That is really annoying, because when I create a syntax error, dev-server (
/usr/bin/yarn encore dev-server
) crashes:This is my config:
I tried
options.watchFiles
,hot=false
, etc. Nothing works. How can I disable this behaviour? It shouldn't reload when changing PHP files.The text was updated successfully, but these errors were encountered: