-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Using @ as retina image suffix is causing error in SASS #99
Comments
Can you paste the generated SASS in a gist? |
This is the code that gave me errors, I think documentation should suggest some other separator than @ it brings a lot of confusion for SASS users. And you rarely see big project which does not use SASS or LESS. |
I'm having trouble finding a template that's in our project with that type of output. Can you paste your |
I am using .handlebars template which generates sass file like this
and here is task in a gulp file:
|
The issue lies in that you aren't quoting your keys in the SCSS map. Adding wrapping quotes should resolve the issue: {{#retina_sprites}}
'{{name}}': ( We haven't had this issue in our templates as we use sprite files as variable names (i.e. |
We are using handlebars template as legacy from previous project, so it's not a must, |
I followed documentation tip to use @ as suffix for retina images
Because of it I get SASS error :
Invalid CSS after "logo2": expected expression (e.g. 1px, bold), was "@2x: ("
Any update on that?
P.S this documentation tip was caused by a discussion on this issue twolfson/grunt-spritesmith#137 . Maybe you can work out other solution without using @.
The text was updated successfully, but these errors were encountered: