How to get @include background-image to work in ionic scss?

When I do,

@import "compass/css3/images"

@include background-image(linear-gradient(left, #fc3, #000));

I get,

error: file to import not found or unreadable: “compass/css3/images”

I have my scss compiling in gulp so it’s updating along with ionic serve

How can I get this working?

I don’t think compass is included in ionic. So You should start by installing it in Your project.

Also: in order to get more info about why this is not working You can try running gulp sass or even gulp sass -v - this will run ONLY sass compilation so maybe You will get the details You need.