Symfony2 - Assetic - load images in CSS

后端 未结 9 2130
逝去的感伤
逝去的感伤 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:07

    Regarding Yann's answer, actually you don't have to re-install assets after every change if you use the --symlink option.

    Note, however, that running the vendors install script will overwrite the symlinks, so you'll need to delete the bundles/* folders and install the assets with the --symlink option again after running the vendors script.

提交回复
热议问题