Skip to content

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

متغير: pruneCustomProps ​

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

Beta

إنشاء مكوّن PostCSS prune-unused-custom-properties.

Type Declaration ​

Returns ​

Plugin

إضافة PostCSS Plugin.

postcss ​

postcss: true

علامة مكوّن PostCSS المطلوبة.

Example ​

شغّله كمرور 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