2015-01-25 3 views
0

symfony2에 kriswallsmith/assetic (symfony/AsseticBundle) 번들을 사용하고 있는데, assetic : dump를 사용하여 파일의 일부만 렌더링하는 방법을 찾고있었습니다.symfony2 - assetic : dump - 덤핑의 선택적 덤프 방법

나는 내 자신을 설명합니다 : 관리자 관리를위한 일부 자산으로서의 앱과 프론트 엔드를위한 다른 앱으로, 전면 자산 만 덤프 할 수 있기를 원합니다. 가능합니까?

이 assetic : 덤프도 항상 app_dev.php 및 app.php에 대한 두 파일을 렌더링 그에게 컴파일 된 CSS/js를 렌더링하는 방법은 무엇입니까?

감사

당신이 당신의 assetic 구성이 앱이/설정/config.yml에서는

답변

1

, 당신이 추가 할 수 있습니다 파일을

 assetic: 
     ##### 
     assets: 
      this_is_the_name_of_the_dumpfile: 
       inputs: 
        - %kernel.root_dir%/../web/css/style.css 
        - another/path/to/another/file 
        - ###### 
       filters: 
        - yui_js 
        - other_defined_filter 

을 그리고 당신이 구성된 경우 assetic이 덤프/웹/assetic /, twig 파일에 덤프 된 파일의 경로를 추가하십시오. {{ asset('assetic/this_is_the_name_of_the_dumpfile.css') }}