EE 1
EE 2
AutoMin
Developer
3rd Party (Free)
Download v2.1.1Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
- compile, compress, minification, minify, compression, js, caching, html, javascript, css
AutoMin is an ExpressionEngine module and extension that automates the combination and compression of your source files and currently supports CSS, JavaScript, LESS, and HTML compression. AutoMin is smart enough to know when you've changed your source files and will automatically regenerate it's cache when appropriate.
See the README for full implementation details.
Note: All bug reports and feature requests should be filed at my GitHub repository.
New in v2.1.1:
- Hotfix release. Fixes an issue where the .less extension was applied to AutoMin’s output when compiling LESS
New in v2.1:
- A general rewrite of the code was done to improve performance and make room for new features that are in the works. Please read these notes prior to upgrading!
- Relative file paths are now supported in both your markup and in CSS @imports. You should still use document-root relative paths in your CSS files as those paths are NOT rewritten.
- Tag attributes have changed. You must now prefix the attributes you want to be passed along to AutoMin’s output with the string
attribute:. Here’s an example:{exp:automin:js attribute:type=“text/javascript”} - Config overrides have changed. Please see the notes below. The old config overrides will continue to work, but it is recommended that you go ahead and update your config file now.
- Fixed Bug #6. Multiple sites are now supported.
- Fixed Bug #7. Config overrides are now reflected in the CP.
- Fixed Bug #8. Less now parses @import statements. Bootstrap is now supported.
- Added Feature Request #4. Markup compression no longer requires the CodeIgniter hook. Thanks to a nifty new extension hook in EE 2.4. Please remove the
automin.phpfile from yoursystem/expressionengine/hooksdirectory and remove the AutoMin line from yoursystem/expressionengine/config/hooks.phpfile. Requires ExpressionEngine 2.4+. - If you experience any funkyness after updating AutoMin to v2.1, try the following: 1) Uninstall and then re-install the module and extension. 2) Make sure you’ve changed your template tags to use the new attribute syntax. 3) Make sure your CSS and JS pass lint without any errors. 4) Check the template log for any errors processing your template tags.
New in v2.0:
- Added support for LESS compilation thanks to the PHP LESS parser: https://github.com/leafo/lessphp
- Updated the CSS and JS compression classes from the Minify Project.
- Added ability to override AutoMin’s configuration options in the config.php file.
- When returning compiled source code, the timestamp of the latest-modified file is appended to the compiled source file so that browsers will cache files as long as possible—-but not too long.
- Other minor refactorings and optimizations.
New in v1.3.1:
- Fixed an issue where Automin bypassed the EE Output class when HTML compression was enabled. See this thread: http://expressionengine.com/forums/viewthread/192550/#908600
New in v1.3.0:
- Added support for EE globals, path variables, stylesheet tags, etc
New in v1.2.4:
- Fixed a HTML minification compatibility issue with Low Reorder
New in v1.2.3:
- Fixed a minor issue causing HTML compression to not occur.
New in v1.2.2:
- Edit settings in the ExpressionEngine control panel
- AutoMin can now compress your HTML markup
- Added template debugging for troubleshooting and to see how much AutoMin compressed your code
- AutoMin now correctly handles @import statements in your CSS
AutoMin Features
- Automatic CSS and JavaScript compression
- Compiles LESS (EE 2.x)
- Automatic HTML Markup compression (only EE 2.4+)
- Intelligent caching mechanism knows when you’ve changed a file
- Handles CSS & LESS @import statements
- Handles EE globals, and {path} variables. Does not handle {stylesheet} variables.
- Basic support for EE 1.X
EE 1.X Notes
Support for EE 1.X is very limited. You get the basics in the form of a plugin. There is no backend settings screen and HTML markup compression is not supported.
Download AutoMin
| EE Version | Downloads | Add-On Version | Release Date |
|---|---|---|---|
| 2.+ | Download | 2.1.1 | 2012-03-13 09:29 AM |
| 1.x | Download | 1.0 | 2011-03-09 01:00 AM |
AutoMin Links
Hooks Used
If the add-on is an extension, and ties into ExpressionEngine's core files, it will use ExpressionEngine hooks. We are listing any hooks the add-on uses for developers to have an easier time locating other add-ons that they can reference for their own work.
This entry was last updated March 13, 2012, 4:31 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
3 Reviews:
mr_tim 10.17.11
Easy to implement, and made a tangible difference to page speed.
Leapfrog 08.15.11
Very nice addon. Well thought out and simple to install. Thankyou!
StevenUTR 07.17.11
Great plugin, stand-up support. @lehrerfreund: if this breaks a template, file a bug-report. Rating a plugin 1 star because of 1 bug is ridiculous.