主页 > purgecss > PurgeCSS > walkThroughCSS
PurgeCSS.walkThroughCSS() 方法
遍历 CSS AST 并移除未使用的 CSS
签名
walkThroughCSS(root: PostCSSRoot, selectors: ExtractorResultSets): void;
参数
参数 | 类型 | 描述 |
---|---|---|
root | PostCSSRoot | postcss AST 的根节点 |
selectors | ExtractorResultSets | 内容文件中使用的选择器 |
返回
void