-
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
Relative image paths in scss doesn't work for symfony projects #60
Comments
What we could do is adding a
Then the output of the SCSS file could be changed to use that relative path instead of the path it generates per default:
Note: This line of code needs to be altered in order to do so |
Yeah, this would help. I think the main problem is the missing rb-file in grunt, where you could specifiy your target folders, that would make it easier. Best (better) practise would be: sprites: {
icon: {
src: ['app/Resources/images/icon/*.png'],
css: 'app/Resources/sass/icon.scss',
map: 'icon.png',
imagePath: 'web/images', // user can specify relative or absolute path, like he want
output: 'scss'
}
} |
@soophie That would be even easier to implement. |
really? Oh, I want this :-) |
@soophie Docs are here: https://github.com/asciidisco/grunt-imagine#staticimagepath |
Needed to fix something else, please use version 0.3.51 to try this. |
staticImagePath is now used in my scss-file but, the image itself is missing in my path. I only have url(../images/"). |
Please try with 0.3.53; x.x.51 & x.x.52 had some bugs related to this. |
I have following sprite-setup:
My scss-files compiled to 'web/css/*'. So my icon-image should be relative like ../images/icon.png, but now it's url("../../../web/images/icon.png"). So my css-files doesn't find the icon-image.
The text was updated successfully, but these errors were encountered: