NOTE: This is still work in progress. The following information is not accurate.
Compress static files to be served by a web server.
A tool for compressing static assets later served by a web server. This tool can compress files selected by the glob patterns. It can also ignore compressing already compressed files and delete compressed files that was the same size or bigger than the source.
npm install -g pre-compress
npm install --save-dev pre-compress
Usage: pre-compress [options]
Compress static files to be served by a web server.
Options:
-V, --version output the version number
-f, --files <files...> the files to compress, supports glob patterns to match multiple files
-d, --delete-larger delete compressed files that is larger than the source
-s, --skip-existing don't compress if the compressed version exist
-h, --help display help for command