pc__search_animation_in_css
v0.0.1
Published
This is plugin for nmp-package "Post-Compression". He's searching for the name of animation in the CSS code.
Downloads
3
Maintainers
Readme
Search animation in CSS
This is plugin for nmp-package "Post-Compression".
He's searching for the name of animation in the CSS code.
An example of using:
var searchAnimationInCSS = require("pc__search_animation_in_css"),
uniqueNames = {};
gulp.src("./*.css")
.pipe(postCompression.search([
searchAnimationInCSS()
], uniqueNames));
Where:
- uniqueNames - an object of type JSON with rules replace the long words to short words.
An example of CSS code:
@-webkit-keyframes someNameA {
...
}
@keyframes someNameA {
...
}
An example of a result searching:
{
"someNameA": 2
}