From 828e9a8538c52ef01a850daeba0b3da3b3ad0913 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Thu, 8 Mar 2018 12:36:47 -0800 Subject: [PATCH] Skip minification of large bundles during CI builds. (#7528) --- scripts/gulp-tasks.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/gulp-tasks.js b/scripts/gulp-tasks.js index 47ca243033..972474f433 100644 --- a/scripts/gulp-tasks.js +++ b/scripts/gulp-tasks.js @@ -131,10 +131,12 @@ function registerStandalonePackageTask( plugins, }), gulp.dest(standalonePath), - uglify(), + ].concat( + // Minification is super slow, so we skip it in CI. + process.env.CI ? [] : uglify(), rename({ extname: ".min.js" }), - gulp.dest(standalonePath), - ], + gulp.dest(standalonePath) + ), cb ); });