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#clone

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

Returns an exact clone of the node.

The resulting cloned node and its (cloned) children will retain code style properties.

decl.raws.before    //=> "\n  "
const cloned = decl.clone({ prop: '-moz-' + decl.prop })
cloned.raws.before  //=> "\n  "
cloned.toString()   //=> -moz-transform: scale(0)

Parameters

optional
overrides: object

New properties to override in the clone.

Returns

this

Clone of the node.