开发者 | ale.carbo |
---|---|
更新时间 | 2015年4月21日 19:23 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 4.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp_enqueue_style()
and wp_enqueue_script()
, merges and minifies them.
You can also use AssetsMinify to create your WP theme using Compass / Sass / Less without configuring any config.rb
or that kind of stuff.
AssetsMinify is based on Assetic library.
Fork me on Github.
assetsminify
folder to the /wp-content/plugins/
directorySettings > AssetsMinify
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 ).PHP 5.3+
You can fill in the text field "Resources to exclude" within the admin page of the plugin using the filename of the resource. For example: script.js (not the whole path).