Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Only compare against the last 'push' to master (#468)
Jake Archibaldf1859eeef2e5
diff --git a/config/size-report.js b/config/size-report.jsindex 2335c186..a8d58f4d 100644--- a/config/size-report.js+++ b/config/size-report.js@@ -22,6 +22,7 @@ function fetchTravisBuildInfo(user, repo, branch) {'branch.name': branch,state: 'passed',limit: 1,+ event_type: 'push',}).then(r => r.json());}@@ -32,9 +33,7 @@ function fetchTravisText(path) {/*** Recursively-read a directory and turn it into an array of { name, size, gzipSize }*/-async function dirToInfoArray(startPath, {- namePrefix = '',-} = {}) {+async function dirToInfoArray(startPath) {const results = await new Promise((resolve, reject) => {readdirp({ root: startPath }, (err, results) => {if (err) reject(err); else resolve(results);