Skip to content

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

Muuttuja: pruneCustomProps ​

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

Beta

Luo prune-unused-custom-properties PostCSS-laajennus.

Type Declaration ​

Palauttaa ​

Plugin

PostCSS Lisäosa.

postcss ​

postcss: true

Vaadittu PostCSS-lisäosan tunniste.

Esimerkki ​

Suorita se itsenäisenä PostCSS-käsittelynä

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