I can minify on Windows with Node + UglifyJS. So I can say “this change adds 123 bytes after minification.”
But I’d like to be able to saying “this changes adds 23 bytes after minification + gzipping.”
How can I find out how gzipping will affect my file’s size, easily, on Windows?
I use UnxTools (http://sourceforge.net/projects/unxutils/files/unxutils/current/) for windows
In the zip file, you can simply unpack /usr/local/wbin folder to any location on your disc (I use C:/Tools/Unx and make it part of the PATH.
There is gzip tool. Simply use “gzip myscript.js” to get it gzipped. You can easily include the tools into command line process to automate the gzipping and size comparison.
UPDATE: Here is the small
checkgzip.cmdfile I use with UnxTools to see the difference:Typical output then looks like this with file lengths in bytes to the right from the files:
Files are back intact after the run.