Skip to main content
Module

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

A Bundler with the web in mind.
Latest
method postcss.Node.prototype.replaceWith
Re-export
import { postcss } from "https://deno.land/x/bundler@0.9.0/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.