dropcss icon indicating copy to clipboard operation
dropcss copied to clipboard

An exceptionally fast, thorough and tiny unused-CSS cleaner

Results 15 dropcss issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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...

enhancement

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)); } ```

enhancement
good first issue

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...

sub-project

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...

enhancement