Download shrink 1.0
We did not scan shrink 1.0 for viruses, adware, spyware or other type of malware. For your own protection it's recommended to have an updated antivirus installed on your computer when downloading and installing programs from software123.
software123 lists downloads from various software publishers, so if you have a question regarding a particular software contact the publisher directly. The download links for shrink 1.0 are provided to you by software123 without any warranties, representations or gurantees of any kind, so download at your own risk.
This command depends on YUI Compressor to do the work, and can be run with Python 2.5 and above.
INI style config files are used to know which files will be minified and also to know which ones will be merged before minimization.
To display script information and options run:
Minimize css and js files
To minimize all files, run:
shrink -f example_shrink.cfg all
This will use yuicompressor.jar and the example_shrink.cfg file in current directory to compress all files.
In case that minimzation is not desired for all files, is also possible to minimize individual files, or a group of files, by using the name(s) of each section instead of all as argument.
To list available sections, run:
shrink -f example_shrink.cfg -l
Config file format
Config file is an INI file with a section defined for each individual file that can be generated.
For minification of a single file a section would be written as:
source_directory = %(base_dir)s/js
destination_file = sample-file.min.js
source_files = sample-file.js
- source_directory value will point to the directory where file(s) listed in source_files are located.
- source_files value can be a single file name, or a list of file names. When a list of names is given, each file in list is concatenated (from top to down) into a single file before compression.
- destination_directory When this value is present it is used as output directory for the minified file. By default minified file is generated in source directory.
- destination_file value is the name for the minified file.
- hash when true include destination file in shrink hash. See Shrink hash file.
Many files can be specified to be concatenated into a single file that will be named with the value given in destination_file, by writing a section like:
source_directory = %(base_dir)s/css
destination_file = sample-multiple-file.min.css
Instead of running script with sample-single-file-js and sample-multiple-file-css as arguments is possible to define a group like:
And then run minifier script with sample-group as parameter.
Shrink hash file
After minification Shrink can create a file containing a SHA1 hash. The file is created when at least one section in config file has hash = true. Hash is created using the contents of all destination files in these sections.
Related programsOur Recommendations
Automatically redirect predefined HTTP addresses to HTTPS, with this extension.About GoogleDownload
Xfce WMdock plugin is a compatibility layer for running WindowMaker dockapps on the XFCE desktop.Download
MurrinaBlu is a GTK theme for GNOME, powered by the SVN version of the Murrine engine.How toDownload
ublook is a Superkaramba theme based on the linux-look widget.It was modified for my ownDownload
djextdirect is an Ext.Direct serverside and clientside implementation for Django.Product'sDownload
Eric is an open source and multi-platform project that provides developers and programmers with aDownload
Flapjax is a new programming language designed around the demands of modern, client-based WebDownload
circuits-bricks is a collection of general purpose Python components for the circuits framework.Download
hman-murrina is a Murrina mod that matches the hman Emerald theme. It is designed to be veryDownload