mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
This prepares for a future where we're using more than one wasm-file, originating in different `external/`-folders, by extending the existing `gulp.watch` usage. The following diff illustrates how to add more entries: ```diff diff --git a/gulpfile.mjs b/gulpfile.mjs index 0e0a5a1ac..1502755be 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -655,6 +655,10 @@ function createWasmBundle() { base: "external/openjpeg", encoding: false, }), + gulp.src(["external/foobar/*.wasm"], { + base: "external/foobar", + encoding: false, + }), ]); } @@ -2125,7 +2129,7 @@ gulp.task( }, function watchWasm() { gulp.watch( - "external/openjpeg/*", + ["external/openjpeg/*", "external/foobar/*"], { ignoreInitial: false }, gulp.series("dev-wasm") ); ```
3 lines
21 B
Text
3 lines
21 B
Text
locale/
|
|
cmaps/
|
|
wasm/
|