AI助手支持GPT4.0
How many times have you wished to minify in a clean way all the stylesheets and scripts of a WordPress website?
您希望多少次以干净的方式缩小WordPress网站的所有样式表和脚本? p>
AssetsMinify takes every CSS and JS asset included using wp_enqueue_style() and wp_enqueue_script(), merges and minifies them.
wp_enqueue_style()
wp_enqueue_script()
AssetsMinify将使用 wp_enqueue_style() code>和 wp_enqueue_script() code>包含的所有CSS和JS资产合并并缩小。 p>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使用Compass / Sass / Less创建WP主题,而无需配置任何 config.rb code>或这类东西 em>。 p>AssetsMinify is based on Assetic library. AssetsMinify基于Assetic库。 p>Fork me on Github. 在Github上叉我。 p>
wp_enqueue_style() code>和 wp_enqueue_script() code>包含的所有CSS和JS资产合并并缩小。 p>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使用Compass / Sass / Less创建WP主题,而无需配置任何 config.rb code>或这类东西 em>。 p>AssetsMinify is based on Assetic library. AssetsMinify基于Assetic库。 p>Fork me on Github. 在Github上叉我。 p>
wp_enqueue_script() code>包含的所有CSS和JS资产合并并缩小。 p>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使用Compass / Sass / Less创建WP主题,而无需配置任何 config.rb code>或这类东西 em>。 p>AssetsMinify is based on Assetic library. AssetsMinify基于Assetic库。 p>Fork me on Github. 在Github上叉我。 p>
You can also use AssetsMinify to create your WP theme using Compass / Sass / Less without configuring any config.rb or that kind of stuff.
config.rb
您也可以使用AssetsMinify使用Compass / Sass / Less创建WP主题,而无需配置任何 config.rb code>或这类东西 em>。 p>AssetsMinify is based on Assetic library. AssetsMinify基于Assetic库。 p>Fork me on Github. 在Github上叉我。 p>
config.rb code>或这类东西 em>。 p>AssetsMinify is based on Assetic library. AssetsMinify基于Assetic库。 p>Fork me on Github. 在Github上叉我。 p>
AssetsMinify is based on Assetic library.
AssetsMinify基于Assetic库。 p>
Fork me on Github.
在Github上叉我。 p>
assetsminify
/wp-content/plugins/
assetsminify code>文件夹上载到 / wp-content / plugins / code>目录 li>Activate the AssetsMinify plugin through the ‘Plugins’ menu within WordPress通过WordPress中的“插件”菜单激活AssetsMinify插件 li>Set write permission to uploads directory.设置对上载目录的写许可权。In most cases: chmod 777 wp-content/uploads/在大多数情况下:chmod 777 wp-content / uploads / li>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.通过进入管理菜单中的 Settings> AssetsMinify code>菜单,配置插件:您可以选择是使用Compass编译Sass文件还是不标记“ Use Compass”字段。If you check the flag “Use Compass” you can also specify the Compass compiler’s path ( default is /usr/bin/compass ).如果选中“使用指南针”标记,则还可以指定指南针编译器的路径(默认为/ usr / bin / compass)。 li>Important!重要!If you choose to use Compass, the PHP proc_open function has to be enabled如果您选择使用Compass,则必须启用 PHP proc_open函数from the server which the website relies on.来自网站所依赖的服务器。 li>
/ wp-content / plugins / code>目录 li>Activate the AssetsMinify plugin through the ‘Plugins’ menu within WordPress通过WordPress中的“插件”菜单激活AssetsMinify插件 li>Set write permission to uploads directory.设置对上载目录的写许可权。In most cases: chmod 777 wp-content/uploads/在大多数情况下:chmod 777 wp-content / uploads / li>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.通过进入管理菜单中的 Settings> AssetsMinify code>菜单,配置插件:您可以选择是使用Compass编译Sass文件还是不标记“ Use Compass”字段。If you check the flag “Use Compass” you can also specify the Compass compiler’s path ( default is /usr/bin/compass ).如果选中“使用指南针”标记,则还可以指定指南针编译器的路径(默认为/ usr / bin / compass)。 li>Important!重要!If you choose to use Compass, the PHP proc_open function has to be enabled如果您选择使用Compass,则必须启用 PHP proc_open函数from the server which the website relies on.来自网站所依赖的服务器。 li>
In most cases: chmod 777 wp-content/uploads/
在大多数情况下:chmod 777 wp-content / uploads / li>
Settings > AssetsMinify
通过进入管理菜单中的 Settings> AssetsMinify code>菜单,配置插件:您可以选择是使用Compass编译Sass文件还是不标记“ Use Compass”字段。If you check the flag “Use Compass” you can also specify the Compass compiler’s path ( default is /usr/bin/compass ).如果选中“使用指南针”标记,则还可以指定指南针编译器的路径(默认为/ usr / bin / compass)。 li>Important!重要!If you choose to use Compass, the PHP proc_open function has to be enabled如果您选择使用Compass,则必须启用 PHP proc_open函数from the server which the website relies on.来自网站所依赖的服务器。 li>
Settings> AssetsMinify code>菜单,配置插件:您可以选择是使用Compass编译Sass文件还是不标记“ Use Compass”字段。If you check the flag “Use Compass” you can also specify the Compass compiler’s path ( default is /usr/bin/compass ).如果选中“使用指南针”标记,则还可以指定指南针编译器的路径(默认为/ usr / bin / compass)。 li>Important!重要!If you choose to use Compass, the PHP proc_open function has to be enabled如果您选择使用Compass,则必须启用 PHP proc_open函数from the server which the website relies on.来自网站所依赖的服务器。 li>
If you check the flag “Use Compass” you can also specify the Compass compiler’s path ( default is /usr/bin/compass ).
如果选中“使用指南针”标记,则还可以指定指南针编译器的路径(默认为/ usr / bin / compass)。 li>
If you choose to use Compass, the PHP proc_open function has to be enabled
如果您选择使用Compass,则必须启用 PHP proc_open函数
from the server which the website relies on.
来自网站所依赖的服务器。 li>
ol>
原文出处:http://www.sanshu.cn/a/2922.html
群主管理都是支付大佬