Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Error with file paths as arguments #8

Closed
michaeldzjap opened this issue Aug 30, 2016 · 2 comments
Closed

Error with file paths as arguments #8

michaeldzjap opened this issue Aug 30, 2016 · 2 comments

Comments

@michaeldzjap
Copy link

When I put this in my json:

{
  "background-url": "'some/image.jpg'"
}

I get the following error:
Invalid CSS after "...background-url:": expected expression (e.g. 1px, bold), was "some/image.jp"

@EdwardIrby
Copy link
Owner

So I'm not sure what you're doing but I don't believe there is a property called background-url. I know you can use background or background-image. So you're object should look like this.

{
  "background": "transparent url(some/image.jpg)"
}

// Where transparent is the background color and the url is the image in shorthand.
// or you can just do   

{
  "background-image": "url(some/image.jpg)"
}

@michaeldzjap
Copy link
Author

Yes, sorry! This was a stupid mistake from my side.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants