Is there a way to add a configurable domain to URLs in Sass, so turning this:
.foo { background-image: url('/images/bar.png'); }
Into this:
.foo { background-image: url('https://example.com/images/bar.png'); }
Not sure if this is the right place to ask questions like this.
Yes, you can use mix.setResourceRoot()
.
mix.setResourceRoot('http://example.com/');
Thanks @JeffreyWay!
Thanks @tillkruss @JeffreyWay :+1: I really needed that
Most helpful comment
Yes, you can use
mix.setResourceRoot()
.