Skip to content

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

Pembolehubah: pruneCustomProps ​

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

Beta

Buat plugin PostCSS prune-unused-custom-properties.

Type Declaration ​

Mengembalikan ​

Plugin

Sebuah PostCSS Plugin.

postcss ​

postcss: true

Penanda plugin PostCSS yang diperlukan.

Contoh ​

Jalankan ia sebagai laluan PostCSS berdiri sendiri

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