summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-05-16 11:31:39 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-05-16 11:31:39 +0800
commit43acceb75957c880a5ba5a31aae221394a36d5f6 (patch)
tree6735c095b599aba64c406353890bdef7e189ac1a /package.json
parent1bba1bbe97fe58fa16296fc8bb8220301732ea55 (diff)
replaced html-minifier -> html-minifier-terser
Diffstat (limited to 'package.json')
-rw-r--r--package.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index 34271d6d..16a5cd38 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
- "build:html": "find src/html -name '*.html' -type f -print0 | xargs -0 -I {} bash -c 'mkdir -p \"$(dirname \"./public/${1#src/html/}\")\"; html-minifier --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-tag-whitespace --use-short-doctype \"$1\" --output \"./public/${1#src/html/}\"' _ {}",
+ "build:html": "find src/html -name '*.html' -type f -print0 | xargs -0 -I {} bash -c 'mkdir -p \"$(dirname \"./public/${1#src/html/}\")\"; html-minifier-terser --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-tag-whitespace --use-short-doctype \"$1\" --output \"./public/${1#src/html/}\"' _ {}",
"build:css": "postcss src/css/* --dir public/css",
"watch:css": "postcss src/css/* --dir public/css --watch",
"build:js": "babel src/js/* --out-dir public/js",
@@ -27,7 +27,7 @@
"cssnano": "^6.0.1",
"doiuse": "^6.0.2",
"g": "^2.0.1",
- "html-minifier": "^4.0.0",
+ "html-minifier-terser": "^7.2.0",
"pixrem": "^5.0.0",
"postcss": "^8.4.32",
"postcss-cli": "^10.1.0",