AsseticBundle配置(“assetic”)

编辑该页面

警告:你浏览的文档欧宝官网下载appob娱乐下载Symfony 3.0,不再维护。

这个页面的更新版本Symfob娱乐下载ony 6.2(当前的稳定版本)。

AsseticBundle配置(“assetic”)

谨慎

从2.8 Symfony开始ob娱乐下载,Assetic不再包含在默认情况下在Symfony的标准版。指这篇文章学习如何安装和启用Assetic Symfony应用程序。ob娱乐下载

完整的默认配置

  • YAML
  • XML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17日18 19 20 21日22日23日24日25日26日27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47岁
assetic:调试:“% kernel.debug %”use_controller:启用:“% kernel.debug %”分析器:read_from:“% assetic.read_from %”write_to:“% kernel.root_dir % / . . / web”java:/usr/bin/java节点:/usr/bin/noderuby:/usr/bin/ruby萨斯:/usr/bin/sass#任何数量的命名元素的键-值对变量:some_name:[]包:#默认值(目前注册的所有包):- - - - - -FrameworkBundle- - - - - -SecurityBundle- - - - - -TwigBundle- - - - - -MonologBundle- - - - - -SwiftmailerBundle- - - - - -DoctrineBundle- - - - - -AsseticBundle- - - - - -资产:#数组名为资产(例如some_asset、some_other_asset)some_asset:输入:[]过滤器:[]选项:#一个键-值选项和值的数组some_option_name:[]过滤器:#一个数组指定的过滤器(例如some_filter、some_other_filter)some_filter:[]工人:#参见https://github.com/symob娱乐下载fony/AsseticBundle/pull/119#通过framework.assets.version缓存也可以了#设置-请参见“框架”配置部分cache_busting:启用:枝:功能:#命名数组函数(例如some_function、some_other_function)some_function:[]
这项工作,包括代码示例,许可下Creative Commons冲锋队3.0许可证。