Skip to content

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

Spremenljivka: pruneCustomProps

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

Beta

Ustvari PostCSS vtičnik prune-unused-custom-properties.

Type Declaration

Vrne

Plugin

PostCSS vtičnik.

postcss

postcss: true

Zahtevana oznaka PostCSS vtičnika.

Primer

Zaženi ga kot samostojen PostCSS prehod

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