首頁 > @fullhuman/purgecss-from-tsx > purgeFromTsx

purgeFromTsx() 函數

建立函數以從 tsx 程式碼中提取選擇器

簽章

declare function purgeFromTsx(options?: {
    acornOptions?: acorn.Options;
    tsOptions?: ts.CompilerOptions;
}): (content: string) => string[];

參數

參數類型說明
options{ acornOptions?: acorn.Options; tsOptions?: ts.CompilerOptions; }(選用) acorn 選項

傳回

(content: string) => string[]

從 tsx 程式碼中提取選擇器的函數