Skip to content

background-image value #84

Description

@juliami

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'

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}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions