Answer the question
In order to leave comments, you need to log in
Why does Symfony 2 not properly generate image paths in stylesheet?
Actually a subject.
I write in the style file:
.img {
background-image: url('../../images/group/test.jpg');
}
.img {
background-image: url('../../Resources/assets/images/group/test.jpg');
}
Answer the question
In order to leave comments, you need to log in
unfortunately cssrewrite is a very capricious thing .
I have personally ditched assetic in favor of gulp+bower.
I advise you to read the ISUS about cssrewrite and the threads on SO.
symfony.com/doc/current/cookbook/assetic/asset_man...
UPD:
i.e. the error is most likely in the inclusion of css files - there you should use not '@MySuperBundle/Resources/css/*', but 'bundles/my_super/css/*'.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question