Skip to content

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

변수: pruneCustomProps

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

베타

prune-unused-custom-properties PostCSS 플러그인을 만듭니다.

Type Declaration

반환값

Plugin

PostCSS 플러그인.

postcss

postcss: true

필수 PostCSS 플러그인 마커.

예제

독립 실행형 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