From ddd90e671d750a4f4a0b73c4342344a6d3257a1e Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 10 Apr 2020 17:55:06 +0200 Subject: [PATCH] Don't bundle the fallback `grab`/`grabbing` cursor images when running `gulp mozcentral` These cursor images are only necessary as a fallback for older browsers, hence there's no reason to keep shipping them in Firefox as far as I can tell; see https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#Browser_compatibility --- gulpfile.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index ed933b9e1..45cee3646 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1027,11 +1027,17 @@ gulp.task( var version = versionJSON.version, commit = versionJSON.commit; + // Ignore the fallback cursor images, since they're unnecessary in Firefox. + const MOZCENTRAL_COMMON_WEB_FILES = [ + ...COMMON_WEB_FILES, + "!web/images/*.cur", + ]; + return merge([ createBundle(defines).pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "build")), createWebBundle(defines).pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")), gulp - .src(COMMON_WEB_FILES, { base: "web/" }) + .src(MOZCENTRAL_COMMON_WEB_FILES, { base: "web/" }) .pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")), gulp .src(["external/bcmaps/*.bcmap", "external/bcmaps/LICENSE"], {