When using bud.alias
with SCSS (SASS) (bud-sass
), you can use the alias functions by prefixing them with a tilde sign (~
), like so (note: ~@images
used in the example is a predefined alias added by @roots/sage
):
.test {
background: url("~@images/background/test.jpg");
}
Without that tilde sign (~
) the path isn’t correctly interpolated when compiling the SCSS.