承接 alexandresalome/assetic-extra-bundle 相关项目开发

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

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

alexandresalome/assetic-extra-bundle

最新稳定版本:v0.1.5

Composer 安装命令:

composer require alexandresalome/assetic-extra-bundle

包简介

Extra feature for Assetic (asset directory)

README 文档

README

Build status

Provides an additional filter for Assetic: asset directory.

This filter will process your CSS and copy assets to a directory, usually in web/ folder.

By doing so, you can include CSS images and fonts from external libraries without storing dependency in a public folder.

Installation

Edit your composer.json and add the following package as a require:

{
    "require": {
        "alexandresalome/assetic-extra-bundle": "dev-master"
    }
}

Edit your app/AppKernel.php and add the bundle to the registerBundles method:

public function registerBundles()
{
        $bundles = array(
           // ...
           new Alex\AsseticExtraBundle\AlexAsseticExtraBundle(),
           // ...

Configuration

Edit your config.yml and add a section alex_assetic_extra:

alex_assetic_extra:
    asset_directory:
        enabled: true

        # Indicates where assets should be copied to
        # when processing CSS files.
        path: %kernel.root_dir%/../web/assets

        # Not really clear yet
        target: assets

Or to quickly use it:

alex_assetic_extra:
    asset_directory: true

Usage

To use it, use the filter in your {% stylesheets %} template blocks:

{% stylesheets filter="combine,assetdirectory"
    "@SomeBundle/Resources/assets/form.css"
    "../vendor/path/to/some.js"
%}
    {# ... #}
{% endstylsheets %}

Changelog

v0.1

  • Initial version

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-09-22