在Symfony2中使用AsseticBundle工具,基于.Less文件创建所有.css文件到web目录,程序进入无限循环?

时间:2016-03-05 03:13:49

标签: symfony less assetic

我找不到原因。请帮帮我。

我使用此命令生成.css文件到web目录:

$sudo php app/console assetic:dump

错误信息:

 [Symfony\Component\Debug\Exception\OutOfMemoryException]                                       
 Error: Allowed memory size of 5368709120 bytes exhausted (tried to allocate 4205621120 bytes)  

$ ls / opt / webroot / symfony / web / css file list

 //views/base.html.twig

    {% block head_style %}
    {% stylesheets filter='less,cssrewrite'
    '@ScourgenPersonFinderBundle/Resources/public/less/style.less'
    '@BloggerBlogBundle/Resources/css/style.css'
    %}
    <link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen"/>
    {% endstylesheets %}
{% endblock head_style %}


   #app/config/config.yml
    assetic:
      debug:          '%kernel.debug%'
 #    use_controller: '%kernel.debug%'
use_controller: false
bundles:
    - ScourgenPersonFinderBundle
    - MopaBootstrapBundle
    - BloggerBlogBundle
filters:
    cssrewrite: ~
     #        yui_css:
   #            jar: /usr/local/lib/node_modules/yuicompressor/build/yuicompressor-2.4.8.jarw
    less:
        node: /usr/local/bin/node
        node_paths: [/usr/local/lib/node_modules, /opt/lessc]

0 个答案:

没有答案