From dab8a2eaa4b988f1c13642160df22c303969e9d9 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 23 Feb 2024 13:28:47 +0100 Subject: [PATCH] Combine a few lines in the `dist-pre` target (PR 17681 follow-up) In PR 17681 I completely missed that we can combine a number of lines in the `dist-pre` target, which helps reduce code size a little bit. --- gulpfile.mjs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index 6d7033e40..fd3ab7149 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -2222,25 +2222,15 @@ gulp.task( ]) .pipe(gulp.dest(DIST_DIR + "legacy/build/")), gulp - .src(MINIFIED_DIR + "build/pdf.min.mjs") - .pipe(gulp.dest(DIST_DIR + "build/")), - gulp - .src(MINIFIED_DIR + "build/pdf.worker.min.mjs") - .pipe(gulp.dest(DIST_DIR + "build/")), - gulp - .src(MINIFIED_DIR + "build/pdf.sandbox.min.mjs") + .src(MINIFIED_DIR + "build/{pdf,pdf.worker,pdf.sandbox}.min.mjs") .pipe(gulp.dest(DIST_DIR + "build/")), gulp .src(MINIFIED_DIR + "image_decoders/pdf.image_decoders.min.mjs") .pipe(gulp.dest(DIST_DIR + "image_decoders/")), gulp - .src(MINIFIED_LEGACY_DIR + "build/pdf.min.mjs") - .pipe(gulp.dest(DIST_DIR + "legacy/build/")), - gulp - .src(MINIFIED_LEGACY_DIR + "build/pdf.worker.min.mjs") - .pipe(gulp.dest(DIST_DIR + "legacy/build/")), - gulp - .src(MINIFIED_LEGACY_DIR + "build/pdf.sandbox.min.mjs") + .src( + MINIFIED_LEGACY_DIR + "build/{pdf,pdf.worker,pdf.sandbox}.min.mjs" + ) .pipe(gulp.dest(DIST_DIR + "legacy/build/")), gulp .src(