承接 slinstj/yii2-assets-optimizer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

slinstj/yii2-assets-optimizer

Composer 安装命令:

composer require slinstj/yii2-assets-optimizer

包简介

Unifies and compresses js and css files in your AssetBundles. Uses internal server cache to speed up all the process, reducing the time wasting.

README 文档

README

Fast and reliable unifier and compressor for CSS and JS files inside your Yii2 AssetBundles. Uses internal server cache to speed up all the process, reducing the time wasting.

Report your issues

GitHub issues.

Installation

composer require "slinstj/yii2-assets-optimizer:>=0.1-stable"

Configuration/Usage

<?
return [
    // ...
    'components' => [
        // ...
        'view' => [
            'class' => '\slinstj\assets\optimizer\View',
        ]
    ]
];

Additional Options

<?
return [
    // ...
    'components' => [
        // ...
        'view' => [
            'class' => '\slinstj\assets\optimizer\View',
            'minify' => true, // Could be '!YII_DEBUG' for example.
            'publishPath' => '@webroot/yao', // Folder where optimized file(s) will be published in.
            'publishUrl' => '@web/yao', // Web acessible url. Must be in accord to 'publishPath'.
        ]
    ]
];

Next versions

  • To improve cache by using ChainedDependency - On change JS and CSS files, the optimized file(s) will be regenerated automatically. For now, you should clear the cache manually. Please, check this to know how: cache-flushing.
  • To use events instead of the own View object;

Bitdeli Badge

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固