html-minifier-next
Version:
Super-configurable and well-tested web page minifier (enhanced successor of HTML Minifier)
100 lines (99 loc) • 2.61 kB
JSON
{
"author": "Jens Oliver Meiert",
"bin": {
"html-minifier-next": "./cli.js"
},
"bugs": "https://github.com/j9t/html-minifier-next/issues",
"dependencies": {
"commander": "^14.0.2",
"entities": "^7.0.1",
"lightningcss": "^1.31.1",
"svgo": "^4.0.1",
"terser": "^5.46.0"
},
"description": "Super-configurable and well-tested web page minifier (enhanced successor of HTML Minifier)",
"devDependencies": {
"@commitlint/cli": "^20.3.1",
"@eslint/js": "^10.0.1",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@swc/core": "^1.15.11",
"eslint": "^10.0.0",
"rollup": "^4.59.0",
"rollup-plugin-polyfill-node": "^0.13.0",
"typescript": "^5.9.3",
"vite": "^7.3.1"
},
"exports": {
".": {
"types": "./dist/types/htmlminifier.d.ts",
"import": "./src/htmlminifier.js",
"require": "./dist/htmlminifier.cjs"
},
"./package.json": "./package.json"
},
"files": [
"cli.js",
"dist/htmlminifier.cjs",
"dist/types/",
"src/"
],
"funding": "https://github.com/j9t/html-minifier-next?sponsor=1",
"homepage": "https://j9t.github.io/html-minifier-next/",
"keywords": [
"cli",
"compress",
"compressor",
"css",
"html",
"htmlmin",
"javascript",
"js",
"min",
"minification",
"minifier",
"minify",
"optimize",
"optimizer",
"pack",
"packer",
"svg",
"swc",
"terser",
"uglifier",
"uglify"
],
"license": "MIT",
"main": "./dist/htmlminifier.cjs",
"module": "./src/htmlminifier.js",
"name": "html-minifier-next",
"peerDependencies": {
"@swc/core": "^1.15.7"
},
"peerDependenciesMeta": {
"@swc/core": {
"optional": true
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/j9t/html-minifier-next.git"
},
"scripts": {
"build": "tsc && rollup -c",
"build:docs": "vite build --base /html-minifier-next/ --outDir build",
"deploy": "npm run build && npm run build:docs",
"lint": "eslint .",
"prebuild": "node --eval='require(`fs`).rmSync(`dist`,{recursive:true,force:true})'",
"prepack": "npm run build",
"prepare": "git config core.hooksPath .githooks || true",
"serve": "npm run build && vite",
"test": "npm run test:types && node --test tests/*.spec.js",
"test:types": "tsc --project tsconfig.test.json",
"test:watch": "node --test --watch tests/*.spec.js"
},
"type": "module",
"types": "./dist/types/htmlminifier.d.ts",
"version": "5.2.0"
}