minify-html-css
Advanced tools
+1
-1
@@ -215,2 +215,2 @@ import { TransformOutput } from '@swc/html/binding'; | ||
| export { minifyHTML }; | ||
| export { type MinifierType, type MinifyHTMLOptions, minifyHTML }; |
+1
-1
@@ -215,2 +215,2 @@ import { TransformOutput } from '@swc/html/binding'; | ||
| export { minifyHTML }; | ||
| export { type MinifierType, type MinifyHTMLOptions, minifyHTML }; |
+4
-4
| { | ||
| "name": "minify-html-css", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "🔽 A library to minify HTML and CSS.", | ||
@@ -52,6 +52,6 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@swc/html": "^1.13.3" | ||
| "@swc/html": "^1.13.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "2.2.0", | ||
| "@biomejs/biome": "2.2.2", | ||
| "@commitlint/cli": "^19.8.1", | ||
@@ -61,3 +61,3 @@ "@commitlint/config-conventional": "^19.8.1", | ||
| "@semantic-release/git": "^10.0.1", | ||
| "@types/bun": "^1.2.20", | ||
| "@types/bun": "^1.2.21", | ||
| "lefthook": "^1.12.3", | ||
@@ -64,0 +64,0 @@ "semantic-release": "^24.2.7", |
+6
-4
@@ -5,3 +5,5 @@ # minify-html-css | ||
| This project provides a clean and easy-to-use interface for minifying HTML (and soon CSS) with well-documented options. It is designed to be fast, developer-friendly, and highly configurable for modern web projects. | ||
| [](https://github.com/femincan/minify-html-css/actions/workflows/ci.yml) | ||
|  | ||
| [](https://github.com/semantic-release/semantic-release) | ||
@@ -26,3 +28,3 @@ --- | ||
| I created this project to bring together the most performant HTML and CSS minifier libraries as clean, easy-to-use functions with well-documented options. The goal is to make web minification accessible, fast, and developer-friendly. | ||
| I created this project to bring together the most performant HTML and CSS minifier libraries (according to my tests and findings) as clean, easy-to-use functions with well-documented options. The goal is to make web minification accessible, fast, and developer-friendly. | ||
@@ -73,6 +75,6 @@ --- | ||
| ### `minifyHTML(input: string, options?: MinifyHTMLOptions): string` | ||
| ### `minifyHTML(input: string, options?: MinifyHTMLOptions): TransformOutput` | ||
| **Description:** | ||
| Minifies an HTML string by removing unnecessary whitespace, comments, and compressing inline JS and CSS (where supported). | ||
| Minifies an HTML string by removing unnecessary whitespace, comments, and compressing inline JS and CSS (where supported). Returns an object containing `code` property for transformed code and `errors` array for possible errors. | ||
@@ -79,0 +81,0 @@ > **Implementation note:** |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
47597
0.87%156
1.3%0
-100%Updated