The tool allows also:
Create initial configuration files from html files
Reemplace in html script tags by minimized ones.
The code is open source. Similar tool (more powerfull) is jstools
You can install jspack like a simple python egg:
Using easy_install: easy_install jstools
Using pip: pip install jstools
If you use buildout, add it to the eggs list in your buildout.cfg, or as a dependency of one of your own packages in setup.py.
If you have a config file (test.cfg) like:
[DEFAULT] compress = true [concatenated.js] root = /one/path compress = true files = file/relative/to/root.js /absolute/file.js [compressed.js] root = /another/path compress = false files = file/relative/to/root.js js/two.js
It generates /one/path/concatenated.js and /another/path/compressed.js
If root option is not specified, the relative files are considered relative to the config parent directory (test.cfg).
You can use the help:
Support of yahoo miminizer
Nothing changed yet.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.