Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivogabe committed Jun 11, 2018
1 parent 37eb4b7 commit 0098d9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ For more information, see [gulp-sourcemaps](https://github.com/floridoo/gulp-sou

Reporters
---------
You can specify a custom reporter as the second argument of the main function, or as the only argument when using a `tsProject`:
By default, errors are logged to the console and the build crashes on compiler errors. In watch mode, the build does not throw, meaning that consequent builds are still ran. If you do not want to crash the gulp process, you must catch the error. You then need to add `.on('error', () => {})` after `.pipe(tsProject())` or `.pipe(ts(..))`.

If you want to change the way that messages are logged to the console (or some other output), you can provide a reporter. You can specify a custom reporter as the second argument of the main function, or as the only argument when using a `tsProject`:
```javascript
ts(options, reporter);
tsProject(reporter);
Expand Down

0 comments on commit 0098d9c

Please sign in to comment.