承接 zoerb/filerevbundle 相关项目开发

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

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

zoerb/filerevbundle

Composer 安装命令:

composer require zoerb/filerevbundle

包简介

Handle asset rewrites based on json configuration

README 文档

README

This bundle adds support for handling asset cachbusting rewrites based on a JSON configuration. It enables you to drop assetic and use frontend tooling like grunt or gulp to build and rev your assets. The only thing you need is the rev summary provided by gulp-rev or grunt-filerev and this bundle will handle everything else.

The summary file should look something like this:

{
  "/styles/main.css": "/styles/main.59983df7.css",
  "/scripts/main.js": "/scripts/main.c711a749.js"
}

Installation

Step 1: Download

composer require zoerb/filerevbundle

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

<?php
// app/appKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Zoerb\Bundle\FilerevBundle\ZoerbFilerevBundle(),
    );
}

Configuration

Add the following configuration to your app/config/config.yml:

zoerb_filerev: ~

Options

summary_file

Type: string Default value: '%kernel.root_dir%/config/rev-manifest.json'

Points to the rev summary file

enbled

Type: bool Default value: true

debug

Type: bool Default value: %kernel.debug%

root_dir

Type: string Default Value: '%kernel.root_dir%/../web'

length

Type: int Default: 8

The number of characters of the file hash.

separator

Type: string Default: .

The character which separates filename and hash.

Changelog

See Changelog.md

Can I contribute?

Of course. We appreciate all of our contributors and welcome contributions to improve the project further. If you're uncertain whether an addition should be made, feel free to open up an issue and we can discuss it.

License

MIT © Ben Zörb

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固