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

ParameterTypeDescription
optionsacorn.Options(Optional) acorn options

Returns:

(content: string) => string[]

function to extract selectors from jsx code