AutoMin

Developer

Paramore - Jesse Bunch

3rd Party (Free)

364 downloads (last 90 days)

MIT License

EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Extension, Module

Tags

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.

Editor’s Note: Oct 31 2013. This add-on doesn’t appear to be officially supported any longer per this comment on Github. - ryan

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.3:

  • Fixed Bug #23. Updated LessPHP to support the latest version of Twitter Bootsrap.

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.php file from your system/expressionengine/hooks directory and remove the AutoMin line from your system/expressionengine/config/hooks.php file. 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 Support Downloads Add-On Version Release Date
Not Specified Download 2.1.3 Mar 13, 2012
Not Specified Download 1.0 Mar 9, 2011

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.

  1. template_post_parse

This entry was created February 28, 2011, 12:24 pm.
This entry was last updated October 31, 2013, 10:37 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!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

5 Reviews:

Trendesign 09.05.13

Trendesign
Rating - {addon_rating_average}

Does exactly what other plugins promised to do, but didn’t. Love it. Thanks so much for making this available.

JCDerrick 06.27.12

JCDerrick
Rating - {addon_rating_average}

After trying a variety of different add-ons to cache and compress my files, AutoMin hit the nail on the head. It works perfectly with my CDN and has definitely helped load times. I love that it instantly recognizes when I’ve changed a file as well, and reloads the cache. Excellent add-on!

mr_tim 10.17.11

mr_tim
Rating - {addon_rating_average}

Easy to implement, and made a tangible difference to page speed.

Leapfrog 08.15.11

Leapfrog
Rating - {addon_rating_average}

Very nice addon. Well thought out and simple to install. Thankyou!

Steven Langbroek 07.17.11

Steven Langbroek
Rating - {addon_rating_average}

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.