# In your jifty config.yml under the framework section:
Plugins: - CompressedCSSandJS: js: 1 css: 1 jsmin: /path/to/jsmin skipped_js: - complex.js
ConfigFileVersion is greater or equal than 2.
Note that you will need to use
ConfigFileVersion 2 to be able to configure jsmin feature.
skipped_js is a list of js that you don't want to compress for some reason.
Initializes the compression object. Takes a paramhash containing keys 'css' and 'js' which can be used to disable compression on files of that type.
Returns whether JS compression is enabled (which it is by default)
Returns whether CSS compression is enabled (which it is by default)
Checks if the compressed CSS is generated, and if it isn't, generates and caches it. (In devel mode, it always regenerates it)
Checks if the compressed JS is generated, and if it isn't, generates and caches it.
Runs the given JS through jsmin
If a JS or CSS file references another by a relative path, it will most likely end up being mis-requested under the CAS directory. Catch those requests, warn about them, and re-dispatch them internally to what is likely the right place.