Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fed_dev/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/fed_dev@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.