Symfony2 Assetic CSS rewriting breaks on url(data:image…)
Question
I faced a problem with Assetic's CSS rewrite. It works fine in the sense it makes the URLs correct, however, it also ruins data:image
URLs like this:
background: url('data:image/svg+xml;base64,PD94bWw...');
into:
background: url('../../bundles/proj/css/data:image/svg+xml;base64,PD94bWw...');
Is there a workaround or a fix to this?
Solution
It seems there's a pull request for this fix: https://github.com/srosato/assetic/commit/1504cc79588acf418ab5d28320174ef15e603f96
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow