From 607a226ce023760326dec4240710957ad42dfe76 Mon Sep 17 00:00:00 2001 From: wherewhere Date: Sun, 15 Dec 2024 14:40:52 +0800 Subject: [PATCH] feat: upgrade zstd and move it to optionalDependencies --- lib/css.js | 1 - package.json | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/css.js b/lib/css.js index e0a36fe..269e826 100644 --- a/lib/css.js +++ b/lib/css.js @@ -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 diff --git a/package.json b/package.json index c1cebe9..13656ed 100644 --- a/package.json +++ b/package.json @@ -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",