Home > purgecss > PurgeCSS > extractSelectorsFromFiles

PurgeCSS.extractSelectorsFromFiles() method

Extract the selectors present in the files using a PurgeCSS extractor

Signature:

extractSelectorsFromFiles(files: string[], extractors: Extractors[]): Promise<ExtractorResultSets>;

Parameters

ParameterTypeDescription
filesstring[]Array of files path or glob pattern
extractorsExtractors[]Array of extractors

Returns:

Promise<ExtractorResultSets>