Skip to content

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

Változó: pruneCustomProps

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

Béta

Hozza létre a prune-unused-custom-properties PostCSS beépülő modult.

Type Declaration

Visszatérés

Plugin

Egy PostCSS Plugin.

postcss

postcss: true

Kötelező PostCSS plugin jelölő.

Példa

Futtassa önálló PostCSS lépésként

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