Closed rj33 closed 6 years ago
Which version of plugin-css are you using here? The latest version should definitely only be using safe PostCSS optimizations.
Also it would be worth posting this bug against postCSS otherwise as well.
Sorry, didn't notice your reply until now. Looks like I was probably using systemjs-plugin-css@0.1.32.
Do you still get the issue on the latest version?
I'll get back to you on this. Tried to upgrade to 0.20 and having some issues I need to resolve first before I can test again.
I've just tested, and it looks like the problem no longer exists, although it looks like I also changed the encoding on the svg data:image/svg slightly, which might have made the fill=url someone more opaque to the optimiser, but either way it works now, so feel free to close.
I have CSS with styles like this:
the fill="url(#a)" is proving problematic, as the bundling process is converting that to: fill="url(dist/styles/pieces/merida-gradient/#a)"
Note that the '#a' in the url here is an internal reference from the svg to the lineargradient to be used, i.e: