Skip to content

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

Değişken: pruneCustomProps

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

Beta

prune-unused-custom-properties PostCSS eklentisini oluşturun.

Type Declaration

Döndürür

Plugin

Bir PostCSS Eklentisi.

postcss

postcss: true

Gerekli PostCSS eklentisi işareti.

Örnek

Bunu bağımsız bir PostCSS geçişi olarak çalıştırın

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