Sass#
- ignis.utils.sass_compile(path: str | None = None, string: str | None = None, compiler: Literal['sass', 'grass'] | None = None, extra_args: list[str] | None = None) str#
Compile a SASS/SCSS file or string. Requires either Dart Sass or Grass.
- Parameters:
path (
str|None, default:None) -- The path to the SASS/SCSS file.string (
str|None, default:None) -- A string with SASS/SCSS style.compiler (
Literal['sass','grass'] |None, default:None) -- The desired Sass compiler, eithersassorgrass.*extra_args (
list[str] |None, default:None) -- Additional arguments to pass to the Sass compiler.
- Raises:
TypeError -- If neither of the arguments is provided.
SassNotFoundError -- If no Sass compiler is available.
SassCompilationError -- If an error occurred while compiling SASS/SCSS.
- Return type: