audriusdob/yii2-minify-view
Composer 安装命令:
composer require audriusdob/yii2-minify-view
包简介
Yii2 View component with minification css & js
README 文档
README
The main feature of this component - concatenate and compress files connected through "AssetBundle".
Code Status
Support
Installation
composer require "rmrevin/yii2-minify-view:~1.9"
Configure
<? return [ // ... 'components' => [ // ... 'view' => [ 'class' => '\rmrevin\yii\minify\View', 'enableMinify' => !YII_DEBUG, 'web_path' => '@web', // path alias to web base 'base_path' => '@webroot', // path alias to web base 'minify_path' => '@webroot/minify', // path alias to save minify result 'js_position' => [ \yii\web\View::POS_END ], // positions of js files to be minified 'force_charset' => 'UTF-8', // charset forcibly assign, otherwise will use all of the files found charset 'expand_imports' => true, // whether to change @import on content 'compress_output' => true, // compress result html page 'compress_options' => ['extra' => true], // options for compress ] ] ];
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-11