Skip to content

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

Variable: pruneCustomProps

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

Beta

Erstelle das prune-unused-custom-properties PostCSS-Plugin.

Type Declaration

Rückgabe

Plugin

Ein PostCSS-Plugin.

postcss

postcss: true

Erforderliches PostCSS-Plugin-Kennzeichen.

Beispiel

Führe es als eigenständigen PostCSS-Durchlauf aus

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