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

x/bundler/deps.ts>postcss.Container#insertBefore

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

Insert new node before old node within the container.

rule.insertBefore(decl, decl.clone({ prop: '-webkit-' + decl.prop }))

Parameters

oldNode: ChildNode | number

Child or child’s index.

newNode:
| string
| string[]

New node.

Returns

this

This node for methods chain.