Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method default.prototype.replaceWith
import { default } from "https://deno.land/x/postcss@8.4.16/lib/node.d.ts";

Inserts node(s) before the current node and removes the current node.

AtRule: {
  mixin: atrule => {
    atrule.replaceWith(mixinRules[atrule.params])
  }
}

Parameters

...nodes: (
| ChildNode
| ChildProps
| ChildNode[]
| ChildProps[]
)[]

Mode(s) to replace current one.

Returns

this

Current node to methods chain.