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

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

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