Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_bundler/deps.ts>postcss.Container#removeChild

A Bundler with the web in mind.
Latest
method postcss.Container.prototype.removeChild
Re-export
import { postcss } from "https://deno.land/x/deno_bundler@v0.9.1/deps.ts";
const { Container } = postcss;

Removes node from the container and cleans the parent properties from the node and its children.

rule.nodes.length  //=> 5
rule.removeChild(decl)
rule.nodes.length  //=> 4
decl.parent        //=> undefined

Parameters

child: Child | number

Child or child’s index.

Returns

this

This node for methods chain.