Home > purgecss > VariablesStructure > setAsUsed
VariablesStructure.setAsUsed() method
Mark every declaration of the variable as used. The variables it uses are not marked, removeUnused adds them to the used variables first.
Signature:
setAsUsed(variableName: string): void;
Parameters
Parameter | Type | Description |
|---|---|---|
variableName | string | name of the variable, e.g. |
Returns:
void
