Skip to content

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

Variável: pruneCustomProps

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

Beta

Criar o plugin PostCSS prune-unused-custom-properties.

Type Declaration

Retorna

Plugin

Um Plugin do PostCSS.

postcss

postcss: true

Marcador obrigatório do plugin PostCSS.

Exemplo

Execute-o como uma passagem PostCSS independente

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