image-url not found in scss

I have a file with the extension .css.scss that was created by the rails scaffold. In it, I have the following line:

background-image: image-url('sprites.png');

The inspection says "Cannot find function 'image-url'". However, the code works perfectly, and as far as I know, that is the correct way to specify asset-managed images in a scss file.

How can I fix this?

1 comment
Comment actions Permalink

Hello Paul,

There is the issue about it:

Feel free to vote for it.


Please sign in to leave a comment.