Skip to content

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

Variable: pruneCustomProps ​

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

Behta

Gávdnet prune-unused-custom-properties PostCSS-plugin.

Type Declaration ​

Gullii / Gávdnat ​

Plugin

PostCSS Plugin.

postcss ​

postcss: true

Dárbbuheapmi PostCSS-plugga-márgga.

Example ​

Rávtti dan searvva PostCSS-passas eretmearkkis

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