首頁 > purgecss > PurgeCSS > walkThroughCSS
PurgeCSS.walkThroughCSS() 方法
遍歷 CSS AST 並移除未使用的 CSS
簽章
walkThroughCSS(root: PostCSSRoot, selectors: ExtractorResultSets): void;
參數
參數 | 類型 | 說明 |
---|---|---|
root | PostCSSRoot | postcss AST 的根節點 |
selectors | ExtractorResultSets | 內容檔案中使用的選取器 |
傳回
void