Skip to content

pantoken-root / plugins/postcss/props-minify/src / pruneCustomProps

Varyab: pruneCustomProps ​

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

Beta

Kreye plugin PostCSS prune-unused-custom-properties la.

Type Declaration ​

Retounen ​

Plugin

Yon PostCSS Plugin.

postcss ​

postcss: true

Makè plugin PostCSS ki obligatwa.

Egzanp ​

Kouri li kòm yon pas PostCSS endepandan

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