Skip to content

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

Փոփոխական: pruneCustomProps

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

Բետա

Ստեղծել prune-unused-custom-properties PostCSS plugin-ը:

Type Declaration

Վերադարձվող արժեք

Plugin

PostCSS Plugin:

postcss

postcss: true

Պահանջվող PostCSS plugin նշիչ:

Օրինակ

Գործարկել որպես ինքնուրույն 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