W3cubDocs

/Sass

Interface ImporterResult

The result of successfully loading a stylesheet with an Importer.

Hierarchy

  • ImporterResult

Index

Properties

contents

contents: string

The contents of the stylesheet.

Optional sourceMapUrl

sourceMapUrl?: URL

The URL to use to link to the loaded stylesheet's source code in source maps. A file: URL is ideal because it's accessible to both browsers and other build tools, but an http: URL is also acceptable.

If this isn't set, it defaults to a data: URL that contains the contents of the loaded stylesheet.

syntax

syntax: Syntax

The syntax with which to parse contents.

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