Merge pull request #182 from developit/greenkeeper/brotli-size-0.0.3

Update to brotli-size@0.0.3 and use its new async mode
This commit is contained in:
Leah 2018-08-14 18:59:05 +02:00 committed by GitHub
commit ef3244ed9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@
"asyncro": "^3.0.0",
"autoprefixer": "^9.0.0",
"babel-polyfill": "^6.26.0",
"brotli-size": "^0.0.2",
"brotli-size": "^0.0.3",
"camelcase": "^5.0.0",
"chalk": "^2.4.0",
"cssnano": "^4.0.0",

View File

@ -153,7 +153,7 @@ export default async function microbundle(options) {
async function getSizeInfo(code, filename) {
const gzip = formatSize(await gzipSize(code), filename, 'gz');
const brotli = formatSize(brotliSize.sync(code), filename, 'br');
const brotli = formatSize(await brotliSize(code), filename, 'br');
return gzip + '\n' + brotli;
}