pc__search_class_in_css
v0.0.1
Published
This is plugin for nmp-package "Post-Compression". He's searching for the names of classes in the CSS code.
Downloads
5
Maintainers
Readme
Search className in CSS
This is plugin for nmp-package "Post-Compression".
He's searching for the names of classes in the CSS code.
An example of using:
var searchClassNameInCSS = require("pc__search_class_in_css"),
uniqueNames = {};
gulp.src("./*.css")
.pipe(postCompression.search([
searchClassNameInCSS()
], uniqueNames));
Where:
- uniqueNames - an object of type JSON with rules replace the long words to short words.
An example of CSS code:
.someClassA,
.someClassA .someClassB {
...
}
An example of a result searching:
{
"someClassA": 2,
"someClassB": 1
}