Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Command line interface for minifying assets

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 shrink.gemspec
README.md

Shrink

Shrink is a simple command-line utility for shrinking JavaScript files with the Google Closure Compiler. At the moment, shrink only supports JavaScript files, but support for CSS, HTML, and images is planned.

Installation

$ gem install shrink

Usage

$ shrink --help
Shrink shrinks (minifies) your web assets.  Shrink currently supports JavaScript
via the Google Closure Compiler.

Usage:
      shrink [options] <input file>
      shrink [options] <input file(s)> <output file>

where [options] are:
      --dry, -d:   Dry run
    --force, -f:   Force override if the output file exists
  --version, -v:   Print version and exit
     --help, -h:   Show this message

License

Shrink is released under the MIT license:

Something went wrong with that request. Please try again.