Simple and quick asset minification for ExpressionEngine 2 using Minify 2.1.4b.
- 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)
debug='y'
- Debug the compressed outputfiles=''
- 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'}
Minimizes all files based on the /min/groupsConfig.php
debug='y'
- Debug the compressed outputgroup=''
- The group of files you want to compress
Example: {exp:nsm_minify:group_url group='css_screen'}
Sample templates and theme files are available in the samples directory
- http://code.google.com/p/minify/
- http://johndwells.com/software/minimee - Similar plugin