nsm.minify.ee_addon
nsm.minify.ee_addon copied to clipboard
Minify CSS & JS for ExpressionEngine 2
NSM Minify 1.0.1 - Compress CSS & JS
Simple and quick asset minification for ExpressionEngine 2 using Minify 2.1.4b.
Installation
- Download the latest commit on the 'master' branch.
- Rename the file to nsm_minify
- Move to
/system/expressionengine/third_party
- Move
/system/expressionengine/third_party/nsm_minify/min
to the public root of your site - Edit
/min/groupsConfig.php
and create new groups / add files to existing groups (for use with thegroups=
parameter)
Tag reference
{exp:nsm_minify:files_url}
-
debug='y'
- Debug the compressed output -
files=''
- Comma delimited list of files you want to compress, must be of the same type (css, js)
Example: {exp:nsm_minify:files_url files='//file1.css,//file2.css'}
{exp:nsm_minify:group_url}
Minimizes all files based on the /min/groupsConfig.php
-
debug='y'
- Debug the compressed output -
group=''
- The group of files you want to compress
Example: {exp:nsm_minify:group_url group='css_screen'}
Samples
Sample templates and theme files are available in the samples directory
Further reading
- http://code.google.com/p/minify/
- http://johndwells.com/software/minimee - Similar plugin