import { postcss } from "https://deno.land/x/bundler@0.6.5/deps.ts";
const { Container } = postcss;
Traverses the container’s descendant nodes, calling callback for each comment node.
Like Container#each
, this method is safe
to use if you are mutating arrays during iteration.
root.walkComments(comment => {
comment.remove()
})
Parameters
callback: (comment: Comment, indexed: number) => false | void
Iterator receives each node and index.
Parameters
callback: (comment: Comment, indexed: number) => false | void