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

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

Insert new node before current node to current node’s parent.

Just alias for node.parent.insertBefore(node, add).

decl.before('content: ""')

Parameters

newNode:
| Node
| string
| Node[]

New node.

Returns

this

This node for methods chain.