-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
StaticImagePath in SCSS file #64
Comments
Hi, we looked a bit deeper in this problem. staticImagePath works great and does what we expect, but our sprite image isn't at the path, we defined. The example from https://github.com/asciidisco/grunt-imagine#staticimagepath would work, like its described, because the background-url would be 'public/img/src/img/icons36.png' but we need 'public/img/icon36.png'
because the path is builded with staticImagePath + spriteMap. But the file is generated with spriteMap, so it is in our root folder and not in ../images. I would expect, that following definition would generate a correct sass file and correct image:
in sass you should have background: url('../images/icon.png') and our file would have a path lik web/images/icon.png. So we should extract all letters before last / in function generateBackgroundImagePath() and use this for generating the url path. |
Hi, what's the status here? |
I would appreciate a Pull Request, as I have no time to take care of that atm. |
Hi,
unfortunately I have to open up an solved issue (#60) due to a incorrectly generated imagepath.
I have following gruntfile setup:
The imgPath I get in the generated scss-file is following:
what I would like to have in the SCSS (an later on as well in CSS) is:
I'm using v 0.3.53. Sorry for bothering with this one once again.
The text was updated successfully, but these errors were encountered: