From 76f1f9f1e3ba9e72c5f59b2dbe1d2aece5dc237b Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Tue, 15 Dec 2015 00:11:52 -0800 Subject: [PATCH] chore(build): tighten up code size check now that regression is fixed Our code size SLA is 100kb gzipped and 300kb minified. Our target is 10kb gzipped. We are currently under 90kb gzipped. Let's keep it that way while looking for ways to improve the situation further. We're not <300kb minified yet, so we should be stricter here too. Closes #5896 --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index ec35a5e4c7..fc8f207995 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -638,7 +638,7 @@ gulp.task('test.unit.dart', function(done) { // This test will fail if the size of our hello_world app goes beyond one of // these values when compressed at the specified level. // Measure in bytes. -var _DART_PAYLOAD_SIZE_LIMITS = {'uncompressed': 375 * 1024, 'gzip level=6': 105 * 1024}; +var _DART_PAYLOAD_SIZE_LIMITS = {'uncompressed': 320 * 1024, 'gzip level=6': 90 * 1024}; gulp.task('test.payload.dart/ci', function(done) { runSequence('build/packages.dart', '!pubget.payload.dart', '!pubbuild.payload.dart', '!checkAndReport.payload.dart', done);