Skip to content

pantoken / plugins/postcss/prune-custom-props/src / pruneCustomProps

Breytur: pruneCustomProps

const pruneCustomProps: {(): Plugin; postcss: true; }

Beta

Búa til prune-unused-custom-properties PostCSS viðbót.

Type Declaration

Skilar

Plugin

PostCSS viðbót.

postcss

postcss: true

Krafist merkis fyrir PostCSS-viðbót.

Dæmi

Keyra það sem sjálfstætt PostCSS-far

ts
import postcss from "postcss";
import { pruneCustomProps } from "@pantoken/plugin-prune-custom-props";

const out = postcss([pruneCustomProps()]).process(css, { from: undefined }).css;
// only the --instui-* custom properties reachable from real declarations survive