Skip to content

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

Taipūtī: pruneCustomProps

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

Beta

Hangaia te plug-in PostCSS prune-unused-custom-properties.

Type Declaration

Whakahokia

Plugin

He PostCSS Plugin.

postcss

postcss: true

Tohu mono PostCSS e hiahiatia ana.

Tauira

Whakahaerehia hei oma takitahi o 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