Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

# v1.6.4

## New

Compute shorthand properties:
- grid-area
- grid-row
- grid-column

## Improvement

faster tokenizer and node walker functions.

# v1.6.3

## Fix
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ A sample result:

| File | ligthningcss | CSS Parser |
| ------------------------------ | ------------- | ------------- |
| tailwind.css - 2380419 bytes | 1864728 bytes | 1633251 bytes |
| bootstrap-4.css - 200078 bytes | 153616 bytes | 144700 bytes |
| bootstrap-5.css - 205481 bytes | 159987 bytes | 151258 bytes |
| tailwind.css - 2380419 bytes | 1864728 bytes | 1633188 bytes |
| bootstrap-4.css - 200078 bytes | 153616 bytes | 144571 bytes |
| bootstrap-5.css - 205481 bytes | 159987 bytes | 150852 bytes |

On the [complete benchmark suite](https://tbela99.github.io/css-parser/benchmark/index.html), css-parser generated a total output size of 2,204,888 bytes, compared to 2,494,113 bytes for Lightning CSS and larger outputs for all other tested minifiers.
On the [complete benchmark suite](https://tbela99.github.io/css-parser/benchmark/index.html), css-parser generated a total output size of 2,158,698 bytes, compared to 2,494,113 bytes for Lightning CSS and larger outputs for all other tested minifiers.
While some tools prioritize raw execution speed, css-parser focuses on maximizing compression while preserving stylesheet semantics, resulting in consistently smaller production bundles.

## Playground
Expand Down Expand Up @@ -171,10 +171,10 @@ Try it [online](https://tbela99.github.io/css-parser/playground/)
- [ ] font-variant
- [x] gap
- [ ] grid
- [ ] grid-area
- [ ] grid-column
- [ ] grid-row
- [ ] grid-template
- [x] grid-area
- [x] grid-column
- [x] grid-row
- [x] grid-template
- [x] inset
- [x] list-style
- [x] margin
Expand Down
8 changes: 4 additions & 4 deletions benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"all": "npm run sizes && npm run bench; npm run report"
},
"dependencies": {
"@tbela99/css-parser": "^1.6.2",
"@tbela99/css-parser2": "github:tbela99/css-parser#4303f4b",
"@tbela99/css-parser": "^1.6.3",
"@tbela99/css-parser2": "github:tbela99/css-parser#04832c9",
"clean-css": "^5.3.3",
"css-tree": "^3.2.1",
"cssnano": "^9.0.4",
"cssnano": "^9.0.5",
"csso": "^5.0.5",
"esbuild": "^0.28.2",
"lightningcss": "^1.33.0",
"postcss": "^8.5.28",
"vitest": "^5.0.0"
"vitest": "^5.0.1"
}
}
Loading
Loading