Skip to content

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

वैरिएबल: pruneCustomProps

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

बीटा

prune-unused-custom-properties PostCSS प्लगइन बनाएँ।

Type Declaration

वापसी

Plugin

एक PostCSS Plugin

postcss

postcss: true

आवश्यक PostCSS प्लगइन मार्कर।

उदाहरण

इसे एक स्टैंडअलोन PostCSS पास के रूप में चलाएँ

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