dropcss
dropcss copied to clipboard
An exceptionally fast, thorough and tiny unused-CSS cleaner
Hi there, great tool. Thanks for your hard work on this. I use this in my static site generator. I was doing some updates and noticed that the npm package...
Adds support for the [`:is`](https://developer.mozilla.org/en-US/docs/Web/CSS/:is) selector (aka. `:matches`, `:any`). I also took the opportunity to add `.gitignore` and `.npmrc` files to exclude `node_modules` and `package-lock` without being dependent on local...
- https://www.w3.org/TR/css-nesting-1/ - `:has` - `:matches`
A simple instruction for security researchers.
I want to optimize css file across multiple html files... those css files could be different so it would be nice if you could drop or retain individual declarations. Potentially...
When looking at the repo and the examples I see `didRetain´ being used and available https://github.com/leeoniya/dropcss/blob/master/dist/dropcss.cjs.js#L972 However, the version on npm does not have it 😅 https://unpkg.com/[email protected]/dist/dropcss.cjs.js Is it possible...
I was wondering if you've considered a separate cli version of dropcss. I was thinking of developing it when I have time, so I can use it to lint on...
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties#Custom_property_fallback_values ```css .three { background-color: var(--my-var, var(--my-background, pink)); --border-color: linear-gradient(to top, var(--secondary-color), var(--used-color, white)); } ```
DropCSS already contains the vast majority of the machinery necessary to create something akin to these libs: https://github.com/fb55/css-select https://github.com/jquery/sizzle https://github.com/dperini/nwmatcher the amount of additional code/tweaks should be quite small to...
i've personally not needed it, but it could be a quality of life improvement. probably via https://github.com/Rich-Harris/magic-string but not sure how useful it would be without also ingesting a prior...