pug-php/pug-assets
最新稳定版本:1.1.4
Composer 安装命令:
composer require pug-php/pug-assets
包简介
Pug template assets manager
README 文档
README
Manage your assets and third-party transpiler (less, stylus, coffee, babel, etc.) and allow you to concat and/or minify them in production environment.
Install
First you need composer if you have'nt yet: https://getcomposer.org/download/
Then in the root directory of your project, open a terminal and enter:
composer require pug-php/pug-assets
Enable the plugin:
use Pug\Assets; use Pug\Pug; $pug = new Pug(); // The facade syntax: Assets::enable($pug); $pug->render('... minify ...'); // here you can use minfiy, assets or concat keywords to wrap your assets Assets::disable($pug); $pug->render('... minify ...'); // here minfiy, assets or concat are simple tags again // Or the instanciation syntax: $assets = new Assets($pug); $pug->render('... minify ...'); // here you can use minfiy, assets or concat keywords to wrap your assets unset($assets); $pug->render('... minify ...'); // here minfiy, assets or concat are simple tags again
For more information about the concat/minify usage, see https://github.com/pug-php/pug-minify#readme
Pug-Assets also instal the coffee, react-jsx, stylus, less and markdown pug filters to use them as inline contents.
统计信息
- 总下载量: 86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-29