Socket
Socket
Sign inDemoInstall

postcss-remove-unused-css

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.2

2

index.js

@@ -5,3 +5,3 @@ const fs = require("fs");

const REGEX = /\[.*?\]|[:*][a-z-_:]+|[^a-z-_:]+/g;
const REGEX = /\[.*?\]|[:*][a-z-_:]+|[^a-z]+/g;
const DEFAULT_OPTIONS = {

@@ -8,0 +8,0 @@ path: "./src",

@@ -5,3 +5,3 @@ {

"description": "Whitelists CSS selectors based on your other files",
"version": "1.0.0",
"version": "1.0.2",
"main": "index.js",

@@ -11,3 +11,11 @@ "author": "Silvio Henrique Ferreira <shferreira@me.com>",

"postcss": "^7.0.14"
},
"homepage": "https://github.com/shff/postcss-remove-unused-css",
"repository": {
"type": "git",
"url": "https://github.com/shff/postcss-remove-unused-css.git"
},
"bugs": {
"url": "https://github.com/shff/postcss-remove-unused-css/issues"
}
}
# postcss-remove-unused-css
This is a simple to use PostCSS plugin that whitelists your CSS selectors based on your other files.
This is a simple to use PostCSS plugin that removes CSS selectors based on your other files.

@@ -9,2 +9,6 @@ Unlike Uncss, the content doesn't matter: we're running a simple regex on the text files instead of a parser. We're also not running any Javascript. Therefore, it is simpler, but it might produce some false-positives.

## Caveats
I'm using a simple file traversal algorithm. I haven't tested it in all operating systems. Please file an issue and I'll look into it!
## Installation:

@@ -65,4 +69,4 @@

### License
## License
Copyright (c) 2019 Silvio Henrique Ferreira. See the LICENSE file for license rights and limitations (MIT).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc