[wordpress插件] AssetsMinify资产缩小

wordpress 插件 文章 2020-02-22 06:30 512 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

How many times have you wished to minify in a clean way all the stylesheets and scripts of a WordPress website?

您希望多少次以干净的方式缩小WordPress网站的所有样式表和脚本?

AssetsMinify takes every CSS and JS asset included using wp_enqueue_style() and wp_enqueue_script(), merges and minifies them.

AssetsMinify将使用 wp_enqueue_style() wp_enqueue_script()包含的所有CSS和JS资产合并并缩小。

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 这类东西

AssetsMinify is based on Assetic library.

AssetsMinify基于Assetic库。

Fork me on Github.

在Github上叉我

安装步骤

    1. Upload the assetsminify folder to the /wp-content/plugins/ directory
    2. assetsminify 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the AssetsMinify plugin through the ‘Plugins’ menu within WordPress
    4. 通过WordPress中的“插件”菜单激活AssetsMinify插件

    5. Set write permission to uploads directory.

    6. 设置对上载目录的写许可权。

      In most cases: chmod 777 wp-content/uploads/

    7. 在大多数情况下:chmod 777 wp-content / uploads /

    8. 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 菜单,

    9. 配置插件:您可以选择是使用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 ).

    10. 如果选中“使用指南针”标记,则还可以指定指南针编译器的路径(默认为/ usr / bin / compass)。

    11. Important!

    12. 重要!

      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.

    13. 来自网站所依赖的服务器。

下载地址
https://downloads.wordpress.org/plugin/assetsminify.2.0.2.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] AdNgin-Adsense Revenue OptimizationAdNgin-Adsense收入优化
[wordpress插件] Custom Type Recent Posts自定义类型最近的帖子
[wordpress插件] Block Registered Usernames in Comments在注释中阻止注册的用户名
[wordpress插件] Codecogs Latex Equation EditorCodecogs Latex公式编辑器
[wordpress插件] Book Share Manager图书共享经理
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8123
问题? 7450
如何快速搭建抽奖助手小程序(无需代码知识) 5126
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6084
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5693
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5278
如何解决渲染层网络错误Failed to load media? 16623
小程序找号找回 释放昵称? 2472
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2549
删除部分微信用户个人数据的通知,怎么删除? 5600