Linux 软件免费装

AssetsMinify

开发者 ale.carbo
更新时间 2015年4月21日 19:23
捐献地址: 去捐款
PHP版本: 3.3 及以上
WordPress版本: 4.2
版权: GPLv2 or later
版权网址: 版权信息

标签

css js less assets minify sass compass coffeescript

下载

1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.2 1.2.3 2.0.0 2.0.1 2.0.2

详情介绍:

How many times have you wished to minify in a clean way all the stylesheets and scripts of a WordPress website? AssetsMinify takes every CSS and JS asset included using 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.

安装:

  1. Upload the assetsminify folder to the /wp-content/plugins/ directory
  2. Activate the AssetsMinify plugin through the 'Plugins' menu within WordPress
  3. Set write permission to uploads directory. In most cases: chmod 777 wp-content/uploads/
  4. Configure the plugin by going to the Settings > 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 ).
  5. Important! If you choose to use Compass, the PHP proc_open function has to be enabled from the server which the website relies on.

屏幕截图:

  • AssetsMinify's configuration panel
  • How to include your stylesheets
  • Set 777 permissions to you uploads directory

常见问题:

Which version of PHP is needed to use AssetsMinify on my WordPress installation?

PHP 5.3+

How can I exclude only certain resources from minification?

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).

更新日志:

2.0.2 2.0.1 2.0.0 1.2.3 1.2.2 1.2.1 1.2.0 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1