-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS Minifying svg in background-image #50
Comments
Came here to +1 this. I was just noticing that my toggle icons were missing when CSS was being minified because the URLs were being touched. This: |
It looks like this could probably be addressed by using this for of cssminify2: https://github.com/bbbenji/cssminify @digitalsparky is this something you can update in your specs? It appears that we're still pulling in your fork from rubygems instead of this one. **EDITED to confirm that this solves the url minifying. @jdbruxelles adding this to your Gemfile will fix this.
|
I've merged the changes in that fork, packages are auto building and will auto deploy once complete. |
Hmm, looks like that patch fails testing, will investigate further when i can, if anyone finds the answer please create a pull req and i'll merge. |
The merge is failing because the test is incorrect. The test is expecting for all spaces to be removed from any url() params, which this fix explicitly doesn't do, so thus, it fails. Specifically this test: ***EDIT |
It appears that this is fixed, and all it needs to start functioning is for the version of digitalsparky/cssminify to be bumped and deployed. |
Hey there! Just checking if there's any update on when the versions will be bumped? Running into this as well. |
Any update on this? |
also having that problem. I have tried to open an issue on https://github.com/digitalsparky/cssminify but there issue reporting is disabled :( |
Hi there,
I use
jekyll-minifier
on some of my projects but when I put an svg tag as background image in a css file, the value ofbackground-image
,url(SVG)
is minified too. Spaces between attributes and between points are removed and thedata:image
become invalide.So
become
Is there a way to avoid that ? Or can you do something about that, please ?
The text was updated successfully, but these errors were encountered: