moxie-lean/assets 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moxie-lean/assets

Composer 安装命令:

composer require moxie-lean/assets

包简介

Loader for theme assets and some extra utilities related with loader of the assets.

README 文档

README

Usage

$assets = new \Lean\Assets( $args );
$assets->load();

Where $args is an array with a group of options you can use to customize your asset loading the options available are:

  • css_uri Path to the CSS being loaded.
  • css_version - Default false, version to specify at the end of the css loaded, useful to prevent the cache of the browser on the styles.
  • js_version - Default false, version to specify at the end of the JS loaded, useful to prevent
  • js_uri - Deafault '' empty string, path where the JS is located.
  • js_version - Default false, version to specify at the end of the JS loaded, useful to prevent cache of script by the browser.
  • jquery_uri - Default '' empty string, useful to change the default path to jQuery by a Google CDN URL instead.
  • jquery_version - Default false if you specify a version number is used to specify the number of jQuery to load.
  • automatic_suffix - Default false This flags allows you to disable the option to add automatically the .min suffix to each asset loaded when the production mode is enabled.
  • automatic_suffix - Default 10 - Sets the loading priority of the assets by accessing the priority of the action hook wp_enqueue_scripts.

统计信息

  • 总下载量: 35.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 15
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固