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