Skip to content

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

Variabel: pruneCustomProps ​

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

Beta

Lag PostCSS-pluggen prune-unused-custom-properties.

Type Declaration ​

Returnerer ​

Plugin

Ein PostCSS plugin.

postcss ​

postcss: true

Nødvendig PostCSS-pluginmarkør.

Døme ​

Køyr det som eit frittståande PostCSS-pass

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