[Tip] Bud alias (`bud.alias`) in SCSS (SASS)

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.

4 Likes

This was killing me last week! thanks @strarsis :pray: