Home > purgecss > PurgeCSS > extractSelectorsFromString

PurgeCSS.extractSelectorsFromString() method

Extract the selectors present in the passed string using a PurgeCSS extractor

Signature:

extractSelectorsFromString(content: RawContent[], extractors: Extractors[]): Promise<ExtractorResultSets>;

Parameters

ParameterTypeDescription
contentRawContent[]Array of content
extractorsExtractors[]Array of extractors

Returns:

Promise<ExtractorResultSets>