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

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

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

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

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

decl.after('color: black')

Parameters

newNode:
| Node
| string
| Node[]

New node.

Returns

this

This node for methods chain.