Skip to content

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

Athróg: pruneCustomProps

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

Béite

Cruthaigh an breiseán PostCSS prune-unused-custom-properties.

Type Declaration

Tuairisceáin

Plugin

Breiseán PostCSS Plugin.

postcss

postcss: true

Marcóir riachtanach do bhreiseán PostCSS.

Sampla

Rith é mar phas PostCSS neamhspleách

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