evolution7 / grunt-usemin-bundle
GruntUseminBundle 为生产环境下使用经过 grunt-usemin 处理的文件提供了一个 Twig 扩展。
0.3.2
2014-06-30 03:44 UTC
Requires
- php: >=5.3.3
- symfony/symfony: >=2.1.0,<3.0
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.