主页 > purgecss > VariablesStructure
VariablesStructure 类
签名
export declare class VariablesStructure
属性
| 属性 | 修饰符 | 类型 | 描述 |
|---|---|---|---|
| nodes | Map<string, VariableNode[]> | ||
| safelist | StringRegExpArray | ||
| usedVariables | Set<string> |
方法
| 方法 | 修饰符 | 描述 |
|---|---|---|
| addVariable(declaration) | ||
| addVariableUsage(declaration, matchedVariables) | ||
| addVariableUsageInProperties(matchedVariables) | ||
| isVariablesSafelisted(variable) | ||
| removeUnused() | ||
| setAsUsed(variableName) |
