postcss-remove-unused-css
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -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). |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4702
1
1
71
1