Create an import statement to be used within your Sass file. See https://sass-lang.com/documentation/file.SASS_REFERENCE.html#import for more details.
sass_import(input, quote = TRUE)sass_file(input)
sass_file(input)
Character string to be placed in an import statement.
Logical that determines if a double quote is added to the import value. Defaults to TRUE.
TRUE
Fully defined Sass import string.
sass_file adds extra checks to make sure an appropriate file path exists given the input value.
sass_file
# NOT RUN { sass_import("foo") sass_import("$foo", FALSE) # } # NOT RUN { sass_file("foo.scss") # }
Run the code above in your browser using DataCamp Workspace