We can set the background image of an element with Vue.js by setting the ‘background-image' property to the path of the background image. Sass Style Guide. Share. Share. Don’t forget to wrap the url() function with single quotes, otherwise angular treated it as a property. Existe uma maneira melhor de … I replaced this code in my _header.scss partial. Load Image from Sass single-spa/single-spa.js.org#282. Something like: Something like: body { background-image: image-url(background.png); } The code for setting url-loader: Link. Share. We can rather store the path to the images folder in a variable. Thankfully, with Compass the image-url helper has us covered. scss Background Image in Style Tag, Plugins, Previous A Sass mixin is an easy way to generate the CSS code. Also, set the background-size to "100%". SASS @import and maintaining URLs for images etc #1015 - GitHub Sass Conclusion. Send . Background Images background-image url error · Issue #2218 · sass/node-sass · GitHub The mixin is stored in one place, so it is easy to maintain. References References. background image using inline styles