Home > @fullhuman/purgecss-from-jsx > purgeFromJsx
purgeFromJsx() function
Create function to extract selectors from jsx code
Signature:
declare function purgeFromJsx(options?: acorn.Options): (content: string) => string[];
Parameters
Parameter | Type | Description |
---|---|---|
options | acorn.Options | (Optional) acorn options |
Returns:
(content: string) => string[]
function to extract selectors from jsx code