Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bundler/deps.ts>postcss.Node#replaceWith

A Bundler with the web in mind.
Go to Latest
method postcss.Node.prototype.replaceWith
Re-export
import { postcss } from "https://deno.land/x/bundler@0.6.5/deps.ts";
const { Node } = postcss;

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

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

Parameters

...nodes: ()[]

Mode(s) to replace current one.

Returns

this

Current node to methods chain.