Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Feature req: Logfile #14

Closed
uhbiv opened this issue Dec 14, 2013 · 4 comments
Closed

Feature req: Logfile #14

uhbiv opened this issue Dec 14, 2013 · 4 comments

Comments

@uhbiv
Copy link

uhbiv commented Dec 14, 2013

Could this generate a logfile, or a comment (special comments if needed) logging the replacements it has made? I noticed that some of my files end up shorter than the original, and wanted a way to track what was pulled out. (and vice versa)

@ai
Copy link

ai commented Dec 15, 2013

BTW, Autoprefixer remove outdated prefixes, so output CSS may be shorter.

@nDmitry
Copy link
Owner

nDmitry commented Dec 15, 2013

Thanks, it's a good idea. Now grunt-autoprefixer can create patch files like this one:

Index: tmp/diff.css
===================================================================
--- tmp/diff.css
+++ tmp/diff.css
@@ -1,3 +1,6 @@
 .test {
+  background: -webkit-linear-gradient(#000, #111);
+  background: -moz-linear-gradient(#000, #111);
+  background: -o-linear-gradient(#000, #111);
+  background: linear-gradient(#000, #111);
+}
\ No newline at end of file
-    background: linear-gradient(#000, #111);
-}

There is a new option described in README.

@uhbiv
Copy link
Author

uhbiv commented Dec 15, 2013

thanks @nDmitry .. this was very quick

the patch file reads a bit strange - many +/- for styles that didn't get replaced (or don't need to be logged)
hope that can improve in the future. cheers!

@nDmitry
Copy link
Owner

nDmitry commented Dec 15, 2013

@uhbiv it's a different indentation level.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants