Home > purgecss > VariablesStructure > addVariableUsage
VariablesStructure.addVariableUsage() method
Warning: This API is now obsolete.
The variables used by a custom property are found by name in
removeUnused, so the dependencies between declarations are no longer recorded and this method does nothing. It will be removed in the next major version.
Signature:
addVariableUsage(declaration: postcss.Declaration, matchedVariables: IterableIterator<RegExpMatchArray>): void;
Parameters
Parameter | Type | Description |
|---|---|---|
declaration | postcss.Declaration | |
matchedVariables | IterableIterator<RegExpMatchArray> |
Returns:
void
