Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
class default
import { default } from "https://deno.land/x/postcss@8.4.16/lib/previous-map.d.ts";

Source map information from input CSS. For example, source map after Sass compiler.

This class will automatically find source map in input CSS or in file system near input file (according from option).

const root = parse(css, { from: 'a.sass.css' })
root.input.map //=> PreviousMap

Constructors

new
default(css: string, opts?: ProcessOptions)

Properties

optional
annotation: string

sourceMappingURL content.

optional
file: string

The CSS source identifier. Contains Input#file if the user set the from option, or Input#id if they did not.

inline: boolean

Was source map inlined by data-uri to input CSS.

optional
mapFile: string

Path to source map file.

optional
root: string

The directory with source map file, if source map is in separated file.

optional
text: string

Source map file content.

Methods

consumer(): SourceMapConsumer

Create a instance of SourceMapGenerator class from the source-map library to work with source map information.

It is lazy method, so it will create object only on first call and then it will use cache.

withContent(): boolean

Does source map contains sourcesContent with input source text.