New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worker npm_encore_watch watch a file #407
Comments
I guess it's another macos specific issue? It works in my ubuntu. Off topic: Interesting that webpack itself doesn't reload itself. As webpack is running in watch mode. (I personally use vite, which actually reload on config change). |
@ellmout work okay for me here. |
hi, |
well works for me, I don't really see what could cause your issue 🤷 |
oh except maybe something (just seen that before closing the IDE): you might have autosave enabled and so the reload already happened before you actually hit "Save" ? |
other hypothesis: maybe your file is not on an actual macOS filesystem (samba share, NFS mount, this kind of things) which might not work with FS change notifications? |
I'm working in my home folder. |
Juste made some test, i set log level to 4 to see debug info and got : But i think the cli can't restart npm watch because of #402 |
i confirm it's related to #402 npm_encore_watch:
cmd: [ 'node_modules/@symfony/webpack-encore/bin/encore.js', 'dev', '--watch']
watch: [ 'webpack.config.js' ] and it's working great ! |
Hi,
When working with
npx encore dev --watch
as a worker, when you changewebpack.config.js
, you have to restart the worker.So i config my worker as this :
To watch for modification of
webpack.config.js
and restart the worker when i update it.But it doesn't work !
I have a worker for messenger :
It works great but only watch dir !
Thx
The text was updated successfully, but these errors were encountered: