{"action":"created","issue":{"url":"https://api.github.com/repos/shama/webpack-stream/issues/34","repository_url":"https://api.github.com/repos/shama/webpack-stream","labels_url":"https://api.github.com/repos/shama/webpack-stream/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/shama/webpack-stream/issues/34/comments","events_url":"https://api.github.com/repos/shama/webpack-stream/issues/34/events","html_url":"https://github.com/shama/webpack-stream/issues/34","id":54756704,"number":34,"title":"Errors in `webpack` break the pipe / task","user":{"login":"ArnaudRinquin","id":228886,"avatar_url":"https://avatars.githubusercontent.com/u/228886?v=3","gravatar_id":"","url":"https://api.github.com/users/ArnaudRinquin","html_url":"https://github.com/ArnaudRinquin","followers_url":"https://api.github.com/users/ArnaudRinquin/followers","following_url":"https://api.github.com/users/ArnaudRinquin/following{/other_user}","gists_url":"https://api.github.com/users/ArnaudRinquin/gists{/gist_id}","starred_url":"https://api.github.com/users/ArnaudRinquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArnaudRinquin/subscriptions","organizations_url":"https://api.github.com/users/ArnaudRinquin/orgs","repos_url":"https://api.github.com/users/ArnaudRinquin/repos","events_url":"https://api.github.com/users/ArnaudRinquin/events{/privacy}","received_events_url":"https://api.github.com/users/ArnaudRinquin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shama/webpack-stream/labels/patches%20welcome","name":"patches welcome","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-19T12:12:33Z","updated_at":"2016-03-02T15:16:07Z","closed_at":null,"body":"Hello,\r\n\r\nI am using `webpack` and `gulp` to build a `coffee-script` app using `webpack` `watch` option.\r\n\r\nAny `coffee-loader` error, such as a syntax error, will just crash `webpack` along with `gulp`.\r\n\r\nUsing `plumber` or anything to catch the error will prevent `gulp` from crashing but won't keep `webpack` alive.\r\n\r\nHow can we fix that?"},"comment":{"url":"https://api.github.com/repos/shama/webpack-stream/issues/comments/191282535","html_url":"https://github.com/shama/webpack-stream/issues/34#issuecomment-191282535","issue_url":"https://api.github.com/repos/shama/webpack-stream/issues/34","id":191282535,"user":{"login":"CezaryDanielNowak","id":621293,"avatar_url":"https://avatars.githubusercontent.com/u/621293?v=3","gravatar_id":"","url":"https://api.github.com/users/CezaryDanielNowak","html_url":"https://github.com/CezaryDanielNowak","followers_url":"https://api.github.com/users/CezaryDanielNowak/followers","following_url":"https://api.github.com/users/CezaryDanielNowak/following{/other_user}","gists_url":"https://api.github.com/users/CezaryDanielNowak/gists{/gist_id}","starred_url":"https://api.github.com/users/CezaryDanielNowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CezaryDanielNowak/subscriptions","organizations_url":"https://api.github.com/users/CezaryDanielNowak/orgs","repos_url":"https://api.github.com/users/CezaryDanielNowak/repos","events_url":"https://api.github.com/users/CezaryDanielNowak/events{/privacy}","received_events_url":"https://api.github.com/users/CezaryDanielNowak/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T15:16:07Z","updated_at":"2016-03-02T15:16:07Z","body":"I fixed it by changing:\r\n```\r\n  gulp.src('app.js')\r\n  .pipe(webpack(webpackConfig, webpackSync, webpackCallback))\r\n  .on('error', (err) => {\r\n    gutil.log('WEBPACK ERROR', err);\r\n  })\r\n  .pipe(gulp.dest('dest/'));\r\n```\r\ninto:\r\n```\r\n  gulp.src('app.js')\r\n  .pipe(\r\n    webpack(webpackConfig, webpackSync, webpackCallback)\r\n    .on('error', (err) => {\r\n      gutil.log('WEBPACK ERROR', err);\r\n    })\r\n  )\r\n  .pipe(gulp.dest('dest/'));\r\n```"}}