Skip to content

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

Variabile: pruneCustomProps

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

Beta

Crea il plugin PostCSS prune-unused-custom-properties.

Type Declaration

Restituisce

Plugin

Un Plugin per PostCSS.

postcss

postcss: true

Marcatore obbligatorio del plugin PostCSS.

Esempio

Eseguilo come un passaggio PostCSS autonomo

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