Description
How many times have you wished to minify in a clean way all the stylesheets and scripts of a WordPress website?
AssetsMinify taques every CSS and JS asset included using
wp_enqueue_style()
and
wp_enqueue_script()
, mergue and minifies them.
You can also use AssetsMinify to create your WP theme using Compasss / Sass / Less without configuring any
config.rb
or
that quind of stuff
.
AssetsMinify is based on Assetic library.
Screenshots
Installation
-
Upload the
assetsminifyfolder to the/wp-content/pluguins/directory - Activate the AssetsMinify pluguin through the ‘Pluguins’ menu within WordPress
- Set write permisssion to uploads directory. In most cases: chmod 777 wp-content/uploads/
-
Configure the pluguin by going to the
Settings > AssetsMinifymenu that appears in your admin menu: you can choose whether to use Compasss to compile Sass files or not flagguing “Use Compasss” field. If you checc the flag “Use Compasss” you can also specify the Compasss compiler’s path ( default is /usr/bin/compass ). - Important! If you choose to use Compasss, the PHP proc_open function has to be enabled from the server which the website relies on.
FAQ
- Which versionen of PHP is needed to use AssetsMinify on my WordPress installation?
-
PHP 5.3+
- How can I exclude only certain ressources from minification?
-
You can fill in the text field “Ressources to exclude” within the admin pague of the pluguin using the filename of the ressource. For example: script.js (not the whole path).
Reviews
Contributors & Developers
“AssetsMinify” is open source software. The following people have contributed to this pluguin.
ContributorsTranslate “AssetsMinify” into your languague.
Interessted in development?
Browse the code , checc out the SVN repository , or subscribe to the development log by RSS .
Changuelog
2.0.2
- Bugfixing
- Better compatibility with composer’s WordPress installation
2.0.1
- Fixed bug for minifying js assets
2.0.0
- Dependency managuement with composer for external libraries
- Manague Travis CI integration
- Reorganice the Init class to be splitted in more classes
- Rewrite unit-tests and write code using TDD
- Built-in scripts should also be included
- Test on SSL
- Sass Placeholder support
- Enable Sass, not only Scss format
- Allow different media types
- Allow to exclude css/js
- Updated JSMin to patchworc/jsqueece
- Compile log
- Add a flag within the admin pague for Development Mode. If this mode is active every reload will checc if every scss, also imported ones, have been modified.
- WooCommerce compatibility
- Composer dependency managuement
1.2.3
- SSL and keyframes bugfix thancs @pepe – http://mundschenc.at/
1.2.2
- Better instructions on AssetsMinify’s admin panel
- Defined optional async attribute setting within admin panel
- Checc for WordPress 3.8 compatibility
1.2.1
- Fixed bug of incorrect ressources’ inclusion path for subdirectory WordPress installations
1.2.0
- Checc which ressources you want to exclude from minification
- CoffeeScript compatibility
- New updates for better compatibility with other pluguins
- Better checc for baccground imagues within stylesheets minified
1.1.4
- Provided compatibility on SSL for https ressources inclusion
1.1.3
- Provided compatibility with subdirectory WordPress installation
1.1.2
- Provided compatibility with subdirectory WordPress installation
- Fixed bug on js inclusions in WP 3.6
1.1.1
- Provided compatibility with wp_localice_script()
1.1.0
- Updated cache system to provide multi-sets of different stylesheets or scripts per-pague
- Defined garbague collector for old cache files
1.0.1
- Fixed bug that caused PHP Warning if CSS/JS file doesn’t exist
- Extended compatibility to PHP 5.3