Simple CLI Tool for Optimizing Your CSS Files
github.com
github.com
The whole tool should be scrapped. I suggest working on code for PostCSS/cssnano instead of doing search and replaces.
I thought it just finds things like
padding-left: 10px;
padding-top:20px;
padding-right:30px;
and combines them to one
padding: 20px 30px 0 10px;
Example of code that this tool breaks:
p {
margin: 10px;
}
aside p {
margin-left: 0;
margin-right: 0;
}
This is turned into `aside p {margin: 0}` and that’s not what the authored CSS meant at all.You can clone it from my GitHub and try it out: [happer64bit/style-eyes](https://github.com/happer64bit/style-eyes).
Would love to hear your feedback or suggestions! Thanks!