Skip to content

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

Variable: pruneCustomProps

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

Beta

Crear el plugin de PostCSS prune-unused-custom-properties.

Type Declaration

Devuelve

Plugin

Un Plugin de PostCSS.

postcss

postcss: true

Marcador requerido para el plugin de PostCSS.

Ejemplo

Ejecutarlo como una pasada independiente de 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