Skip to content

Commit

Permalink
1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya committed May 24, 2019
1 parent c343d4b commit 8fd50e2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The `shouldDrop` hook is called for every CSS selector that could not be matched
### Features

- Retention of all transient pseudo-class and pseudo-element selectors which cannot be deterministically checked from the parsed HTML.
- Deep resolution of composed [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/--*), e.g:
- Deep resolution of composite [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/--*) during `@font-face` and `@keyframes` detection, e.g:
```css
:root {
--font-style: italic;
Expand Down Expand Up @@ -254,7 +254,7 @@ server.listen(8080);
---
### Accumulating a Whitelist

Perhaps you want to take one giant CSS file and purge it against multiple HTML sources, thus retaining any selectors that appear in any HTML source. This also applies when using Puppeteer to invoke different application states to ensure that DropCSS takes every provided application state into account before cleaning the CSS. The idea is rather simple:
Perhaps you want to take one giant CSS file and purge it against multiple HTML sources, thus retaining any selectors that appear in any HTML source. This also applies when using Puppeteer to invoke different application states to ensure that DropCSS takes every state into account before cleaning the CSS. The idea is rather simple:

1. Run DropCSS against each HTML source.
2. Accumulate a whitelist from each result.
Expand Down
2 changes: 1 addition & 1 deletion dist/dropcss.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* dropcss.js (DropCSS)
* An exceptionally fast, thorough and tiny unused-CSS cleaner
* https://github.com/leeoniya/dropcss (v1.0.9-dev)
* https://github.com/leeoniya/dropcss (v1.0.9)
*/

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion dist/dropcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* dropcss.js (DropCSS)
* An exceptionally fast, thorough and tiny unused-CSS cleaner
* https://github.com/leeoniya/dropcss (v1.0.9-dev)
* https://github.com/leeoniya/dropcss (v1.0.9)
*/

(function (global, factory) {
Expand Down
2 changes: 1 addition & 1 deletion dist/dropcss.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dropcss",
"version": "1.0.9-dev",
"version": "1.0.9",
"description": "An exceptionally fast, thorough and tiny unused-CSS cleaner",
"main": "./dist/dropcss.cjs.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test/bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"purgecss": "^1.2.0",
"purgecss": "^1.3.0",
"purify-css": "^1.2.5",
"uncss": "^0.16.2"
},
Expand Down

0 comments on commit 8fd50e2

Please sign in to comment.