mirror of https://github.com/curbengh/hexo-yam
Brotli max compression level is 11
c6333e1e79/c/include/brotli/encode.h (L42)
This commit is contained in:
parent
03668833cf
commit
d99b1d3158
|
@ -158,7 +158,7 @@ function logic_brotli() {
|
||||||
currentFile.endsWith(".txt")) {
|
currentFile.endsWith(".txt")) {
|
||||||
var inp = fs.createReadStream(currentFile);
|
var inp = fs.createReadStream(currentFile);
|
||||||
var out = fs.createWriteStream(currentFile+'.br');
|
var out = fs.createWriteStream(currentFile+'.br');
|
||||||
var brotli = br.compressStream('quality=16');
|
var brotli = br.compressStream('quality=11');
|
||||||
inp.pipe(brotli()).pipe(out);
|
inp.pipe(brotli()).pipe(out);
|
||||||
|
|
||||||
if (options.logger) {
|
if (options.logger) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "hexo-yam",
|
"name": "hexo-yam",
|
||||||
"description": "Yet Another Minifier. Minify and compress html, js and css",
|
"description": "Yet Another Minifier. Minify and compress html, js and css",
|
||||||
"version": "0.5.1",
|
"version": "0.5.2",
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
Loading…
Reference in New Issue