Home > purgecss > VariablesStructure

VariablesStructure class

Signature:

export declare class VariablesStructure 

Properties

PropertyModifiersTypeDescription
nodesMap<string, VariableNode[]>
safelistStringRegExpArray
usedVariablesSet<string>

Methods

MethodModifiersDescription
addVariable(declaration)
addVariableUsage(declaration, matchedVariables)
addVariableUsageInProperties(matchedVariables)
isVariablesSafelisted(variable)
removeUnused()
setAsUsed(variableName)