title: Catching Browserify parse error (standalone option)
body: <p>I'm using gulp + browserify to build and package my javascript library. Now there is one thing that bothers me: I'm running a simple server with livereload for development via gulp. This works fine, but whenever my javascript contains a syntax error, browserify throws an error causing the server to stop.</p>
  
  <p>The browserify code I use (note that I've added an error handler):</p>
  
  <pre><code>browserify("./src/main.js")
     .bundle({standalone: "SomeName", debug: false}).on('error', notify.onError({
              message: "Error: &lt;%= error.message %&gt;",
              title: "Failed running browserify"
      })
  );
  </code></pre>
  
  <p>Now comes the interesting part:
  When I remove the standalone setting (and my js is syntacticaly incorrect), the error handler fires. However, when I use this standalone setting, the error handler does not fire (resulting in the server launched by gulp stopping)</p>
  
  <p>Does anybody know how to deal with this issue? I could always manually validate my js files in gulp, but would like to avoid this workaround</p>