Skip minification of large bundles during CI builds. (#7528)

This commit is contained in:
Logan Smyth 2018-03-08 12:36:47 -08:00 committed by GitHub
parent f97d4313c9
commit 828e9a8538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,10 +131,12 @@ function registerStandalonePackageTask(
plugins, plugins,
}), }),
gulp.dest(standalonePath), gulp.dest(standalonePath),
uglify(), ].concat(
// Minification is super slow, so we skip it in CI.
process.env.CI ? [] : uglify(),
rename({ extname: ".min.js" }), rename({ extname: ".min.js" }),
gulp.dest(standalonePath), gulp.dest(standalonePath)
], ),
cb cb
); );
}); });