mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Upgrade to Gulp 4
This required the following changes in the Gulpfile: - Defining a series of tasks is no longer done with arrays, but with the `gulp.series` function. The `web` target is refactored to use a smaller number of tasks to prevent tasks from running multiple times. - Getting all tasks must now be done through the task registry. - Tasks that don't return anything must call `done` upon completion. Moreover, this upgrade allows us to use the latest Node.js on Travis CI again.
This commit is contained in:
parent
74934db910
commit
fa85f86298
5 changed files with 563 additions and 442 deletions
|
@ -33,4 +33,4 @@ gulp.task('build-worker', function() {
|
|||
.pipe(gulp.dest(OUTPUT_PATH));
|
||||
});
|
||||
|
||||
gulp.task('build', ['build-bundle', 'build-worker']);
|
||||
gulp.task('build', gulp.series('build-bundle', 'build-worker'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue