Home > purgecss > standardizeSafelist
standardizeSafelist() function
Format the user defined safelist into a standardized safelist object
Signature:
export declare function standardizeSafelist(userDefinedSafelist?: UserDefinedSafelist): Required<ComplexSafelist>;
Parameters
Parameter | Type | Description |
---|---|---|
userDefinedSafelist | UserDefinedSafelist | (Optional) the user defined safelist |
Returns:
Required<ComplexSafelist>
the formatted safelist object that can be used in the PurgeCSS options