Home > purgecss

purgecss package

Core package of PurgeCSS

Contains the core methods to analyze the files, remove unused CSS.

Classes

ClassDescription
ExtractorResultSets
PurgeCSSClass used to instantiate PurgeCSS and can then be used to purge CSS files.
VariableNode
VariablesStructure

Functions

FunctionDescription
mergeExtractorSelectors(extractors)Merge two extractor selectors
setOptions(configFile)Load the configuration file from the path
standardizeSafelist(userDefinedSafelist)Format the user defined safelist into a standardized safelist object

Interfaces

InterfaceDescription
ExtractorResultDetailed
Extractors
OptionsOptions used by PurgeCSS to remove unused CSS Those options are used internally
RawContent
RawCSS
ResultPurge
UserDefinedOptionsOptions used by PurgeCSS to remove unused CSS

Variables

VariableDescription
defaultOptions

Type Aliases

Type AliasDescription
ComplexSafelist
ExtractorFunction
ExtractorResult
PostCSSRoot
StringRegExpArray
UserDefinedSafelist