Skip to main content
Module

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

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

Shortcut to clone the node and insert the resulting cloned node before the current node.

decl.cloneBefore({ prop: '-moz-' + decl.prop })

Parameters

optional
overrides: object

Mew properties to override in the clone.

Returns

this

New node