Some people expect node to crash on errors, and are not aware of how Nodes event handling system works. Although this isn't a issue directly related to watchify, it might be helpful to have some guidance in the docs..
I've added a extra subsection to the troubleshooting docs. And I also updated the example snippet with a error handler.
There's been some issues and confusion (https://github.com/browserify/watchify/issues/350, https://github.com/browserify/watchify/issues/323, https://github.com/browserify/watchify/issues/266) about the change in behavior introduced by watchify when it is registered as browserify plugin.
Some people expect node to crash on errors, and are not aware of how Nodes event handling system works. Although this isn't a issue directly related to watchify, it might be helpful to have some guidance in the docs..
I've added a extra subsection to the troubleshooting docs. And I also updated the example snippet with a error handler.
Closes #350 Closes #323