mirror of
https://github.com/developit/microbundle.git
synced 2026-01-25 14:06:50 +00:00
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:
commit
ef3244ed9e
@ -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",
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user