Open juliami opened 7 years ago
Hello, I've been trying to store image url in variable, doesn't seem to work.
Image-config.scss:
@value photo "http://www.someplace.com/image.jpg"
Image.scss:
@value vals "./Image-config.scss"; @value photo from vals; .root{ background-image: url(photo) }
I got Error: Can't resolve 'i__const_photo_3'
Error: Can't resolve 'i__const_photo_3'
Tried also putting it as:
@value photo url("http://www.someplace.com/image.jpg")
and
.root{ background-image: photo }
got Error: Invalid mapping: {"generated":{"line":1,"column":90},"source":"Image-config.scss","original":{},"name":null}
Error: Invalid mapping: {"generated":{"line":1,"column":90},"source":"Image-config.scss","original":{},"name":null}
Hi, @juliami ! I guess you skipped : in definition
:
@value photo: "http://www.someplace.com/image.jpg";
Hm.. sorry. It should be correct
Hello, I've been trying to store image url in variable, doesn't seem to work.
Image-config.scss:
Image.scss:
I got
Error: Can't resolve 'i__const_photo_3'
Tried also putting it as:
and
got
Error: Invalid mapping: {"generated":{"line":1,"column":90},"source":"Image-config.scss","original":{},"name":null}