mirror of https://github.com/curbengh/hexo-yam
feat: upgrade zstd and move it to optionalDependencies
This commit is contained in:
parent
c2ec422680
commit
607a226ce0
|
@ -17,7 +17,6 @@ async function minifyCss(str, data) {
|
||||||
if (isMatch(path, exclude, globOptions)) return str
|
if (isMatch(path, exclude, globOptions)) return str
|
||||||
|
|
||||||
try {
|
try {
|
||||||
console.log(path)
|
|
||||||
const styles = await new CleanCSS(options).minify(str).styles
|
const styles = await new CleanCSS(options).minify(str).styles
|
||||||
if (verbose) logFn.call(this, str, styles, path, 'css')
|
if (verbose) logFn.call(this, str, styles, path, 'css')
|
||||||
return styles
|
return styles
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
"url": "git+https://github.com/curbengh/hexo-yam.git"
|
"url": "git+https://github.com/curbengh/hexo-yam.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mongodb-js/zstd": "^1.2.0",
|
|
||||||
"clean-css": "^5.1.2",
|
"clean-css": "^5.1.2",
|
||||||
"html-minifier-terser": "^7.2.0",
|
"html-minifier-terser": "^7.2.0",
|
||||||
"micromatch": "^4.0.2",
|
"micromatch": "^4.0.2",
|
||||||
|
@ -39,6 +38,9 @@
|
||||||
"jest": "^29.1.2",
|
"jest": "^29.1.2",
|
||||||
"standard": "^17.0.0"
|
"standard": "^17.0.0"
|
||||||
},
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@mongodb-js/zstd": "^2.0.0"
|
||||||
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"minify",
|
"minify",
|
||||||
"compress",
|
"compress",
|
||||||
|
|
Loading…
Reference in New Issue