-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Multiple watch folders? #348
Comments
I don't think it's possible to watch multiple "src"-type directories in Webpack -- at least, not without running multiple compilers. You can continue to play with symlinks, as you've suggested, or you can play with the Going to close, but I hope that helped in some way 😬 Sorry for the delay -- this was just brought to my attention. 🌴 |
Thanks anyway! 🎉 In the meanwhile started to experiment with a yarn-workspaces based monorepo, and it seems to solve a lot of problems with symlinks so far. |
Cool! I'll look into it sometime. |
How is it possible to specify more than one (by default
/src
) watch folder for the dev server (npm start
)?The reason is that I'm developing an app, which has some npm dependencies, which I'm also developing, and they are scoped/private packages, so will reside in something like
/node_modules/@scope/
, so watching this folder and linking those dependencies there would be awesome.Is it possible somehow? (Of course
/src
needs to be watched too.)npm link
would solve the issue ofc., but has a long and troubled history with webpack, because of symlinks, so my current solution is that I copy the dependencies on change with wml to the apps node_modules folder, but it won't cause a live reload on the dev server.Thanks for the answer!
The text was updated successfully, but these errors were encountered: