feat: upgrade zstd and move it to optionalDependencies

This commit is contained in:
wherewhere 2024-12-15 14:40:52 +08:00
parent c2ec422680
commit 607a226ce0
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,6 @@ async function minifyCss(str, data) {
if (isMatch(path, exclude, globOptions)) return str
try {
console.log(path)
const styles = await new CleanCSS(options).minify(str).styles
if (verbose) logFn.call(this, str, styles, path, 'css')
return styles

View File

@ -26,7 +26,6 @@
"url": "git+https://github.com/curbengh/hexo-yam.git"
},
"dependencies": {
"@mongodb-js/zstd": "^1.2.0",
"clean-css": "^5.1.2",
"html-minifier-terser": "^7.2.0",
"micromatch": "^4.0.2",
@ -39,6 +38,9 @@
"jest": "^29.1.2",
"standard": "^17.0.0"
},
"optionalDependencies": {
"@mongodb-js/zstd": "^2.0.0"
},
"keywords": [
"minify",
"compress",