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