W3cubDocs

/Sass

Interface CompileResult

The result of compiling Sass to CSS. Returned by compile, compileAsync, compileString, and compileStringAsync.

Hierarchy

  • CompileResult

Index

Properties

css

css: string

The generated CSS.

Note that this never includes a sourceMapUrl comment—it's up to the caller to determine where to save the source map and how to link to it from the stylesheet.

loadedUrls

loadedUrls: URL[]

The canonical URLs of all the stylesheets that were loaded during the Sass compilation. The order of these URLs is not guaranteed.

Optional sourceMap

sourceMap?: RawSourceMap

The object representation of the source map that maps locations in the generated CSS back to locations in the Sass source code.

This typically uses absolute file: URLs to refer to Sass files, although this can be controlled by having a custom Importer return ImporterResult.sourceMapUrl.

This is set if and only if Options.sourceMap is true.

© 2006–2022 the Sass team, and numerous contributors
Licensed under the MIT License.
https://sass-lang.com/documentation/js-api/interfaces/CompileResult