Symfony2 - Assetic - load images in CSS

后端 未结 9 2140
逝去的感伤
逝去的感伤 2020-11-29 17:38

I have a CoreBundle that contains main css files and images. Now I have a problem when I load an image from css; the image isn\'t shown.

 background-image:ur         


        
9条回答
  •  孤街浪徒
    2020-11-29 18:13

    I have developed a small bundle with a extra filter to solve this issue. You can find it on github: https://github.com/fkrauthan/FkrCssURLRewriteBundle.git

    With this bundle the @Notation for assetic works if you have relativ paths in your css file.

提交回复
热议问题