Skip to content

Commit

Permalink
typo found in Gulp.md PR1101
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongsp committed Sep 21, 2019
1 parent 2e8c34b commit cd4e8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/handbook/tutorials/Gulp.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ watchedBrowserify.on('log', fancy_log);

1.`browserify`实例包裹在`watchify`的调用里,控制生成的结果。
2. 调用`watchedBrowserify.on('update', bundle);`,每次TypeScript文件改变时Browserify会执行`bundle`函数。
3. 调用`watchedBrowserify.on('log', gutil.log);`将日志打印到控制台。
3. 调用`watchedBrowserify.on('log', fancy_log);`将日志打印到控制台。

(1)和(2)在一起意味着我们要将`browserify`调用移出`default`任务。
然后给函数起个名字,因为Watchify和Gulp都要调用它。
Expand Down

0 comments on commit cd4e8ce

Please sign in to comment.