开发者 | Khouildi Salah |
---|---|
更新时间 | 2013年11月7日 00:53 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 3.7.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp_enqueue_style()
and wp_enqueue_script()
and Merges+Minifies them.
You can also use Simple Minify to create your WP theme using Compass / SASS / LESS without configuring any config.rb
or that kind of stuff.
If you have conflict with some ressources, you can excluded them in the back-office.
Simple Minify is based on Assetic library.
simple-minify
folder to the /wp-content/plugins/
directorySettings > Simple Minify
menu that appears in your admin menu: you can choose whether to use Compass to compile SASS files or not flagging "Use Compass" field. If you check the flag "Use Compass" you can also specify the Compass compiler's path ( default is /usr/bin/compass ).
In this page, you can also include/exclude external or local ressources, remove cache, disabled compress for css or js.PHP 5.3+
In settings->SimpleMinify, you can exclude all ressources you want. In "Resources to exclude" field, fill in the filename of the resources you don't want to be managed from AssetsMinify, separated by comma. (eg. custom-carousel.js, slideshow.css)
In settings->SimpleMinify, you can include all external ressources you want. In "Domains of styles to include" or "Domains of scripts to include" field, fill in the domains of the styles you want to be managed from AssetsMinify, separated by comma. (eg. fonts.googleapis.com, minify.fr).
In settings->SimpleMinify, you can disabled compress ressources. Uncheck "Compress scripts" or "Compress styles" box.
In settings->SimpleMinify, you can disabled external compress ressources. Uncheck "Compress external scripts" or "Compress external styles" box.
In settings->SimpleMinify, you can remove cache ressources. Click on "Empty AssetsMinify's Cache" link.