Skip to content

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

متغير: pruneCustomProps

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

بيتا

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

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