Skip to content

Function: createIndex()

ts
function createIndex(css, options?): CssDocIndex;

Defined in: packages/index/src/index.ts:315

Build an index from CSS, with source spans. Parses the model via @cssdoc/core, then makes a second PostCSS pass to locate each record and member.

Parameters

css

string

The CSS source.

options?

file (attached to locations) and configuration (custom tags).

configuration?

CssDocConfiguration

file?

string

Returns

CssDocIndex

The index.

Released under the MIT License