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_uriPath to the CSS being loaded.css_version- Defaultfalse, version to specify at the end of the css loaded, useful to prevent the cache of the browser on the styles.js_version- Defaultfalse, version to specify at the end of the JS loaded, useful to preventjs_uri- Deafault''empty string, path where the JS is located.js_version- Defaultfalse, 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- Defaultfalseif you specify a version number is used to specify the number of jQuery to load.automatic_suffix- DefaultfalseThis flags allows you to disable the option to add automatically the.minsuffix to each asset loaded when theproductionmode is enabled.automatic_suffix- Default 10 - Sets the loading priority of the assets by accessing the priority of the action hookwp_enqueue_scripts.
统计信息
- 总下载量: 35.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-26