evolution7/grunt-usemin-bundle

GruntUseminBundle 为生产环境下使用经过 grunt-usemin 处理的文件提供了一个 Twig 扩展。

安装次数: 2,519

依赖: 0

建议者: 0

安全: 0

星标: 4

关注者: 4

分支: 0

公开问题: 0

类型:symfony-bundle

0.3.2 2014-06-30 03:44 UTC

This package is not auto-updated.

Last update: 2024-09-23 15:44:55 UTC


README

GruntUseminBundle 包含一个对 kernel.controller 事件的监听器,在生产环境下,将 prod_path 添加到 Twig 模板搜索路径之前。

这导致使用 grunt-usemin 处理的 Twig 模板文件能够自动使用。

查看 Symfony Yeoman 生成器 以了解示例用法。

安装

composer.json

    "require": {
        "evolution7/grunt-usemin-bundle": "0.3.*"
    },

AppKernel.php

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Evolution7\GruntUseminBundle\Evolution7GruntUseminBundle(),
            // ...
        );

默认包配置

evolution7_grunt_usemin:
    dev_path:      "app/Resources"
    prod_path:     "app/dist/Resources"

许可证

MIT 许可证 版权 (c) 2013, Evolution 7.