Given the new module system in SASS (https://sass-lang.com/blog/the-module-system-is-launched) and their plans on phasing out @import
, I'm changing my @import
s to @use
s. I've been successful in most cases, but I've run into one hiccup: I currently use @import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap')
to import the Montserrat typeface into my code, and I don't know how to accomplish this with @use
. I've tried the following:
@use url('https://fonts.googleapis.com/css?family=Montserrat&display=swap')
@use "url('https://fonts.googleapis.com/css?family=Montserrat&display=swap')"
@use 'https://fonts.googleapis.com/css?family=Montserrat&display=swap'
All of those give me a SASS compilation error. How do I use @use
in this case?