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
Parameter | Type | Description |
---|---|---|
content | RawContent[] | Array of content |
extractors | Extractors[] | Array of extractors |
Returns:
Promise<ExtractorResultSets>