Skip to content

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

Newidyn: pruneCustomProps ​

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

Bêta

Creu'r ategyn PostCSS prune-unused-custom-properties.

Type Declaration ​

Yn dychwelyd ​

Plugin

Ategyn PostCSS Ategyn.

postcss ​

postcss: true

Marciwr ategyn PostCSS a benodir.

Enghraifft ​

Rhedeg ef fel pas PostCSS annibynnol

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