Skip to content

pantoken-root / plugins/postcss/props-minify/src / applyMinify

Fonksyon: applyMinify() ​

applyMinify(css, options?): string

Beta

Aplike transfòmasyon minifikasyon pwopriyete-custom sou yon chèn stylesheet.

Konstwi yon tablo plugin PostCSS soti nan options epi kouri li an senkron. Lòd plugin yo: pruneCustomProps → flattenProperty → mangleCustomProps. Retounen antre a san chanjman lè pa gen okenn opsyon ki mete.

Paramèt ​

css ​

string

Chèn stylesheet pou transfòme.

options? ​

PropsMinifyOptions = {}

PropsMinifyOptions.

Retounen ​

string

Chèn CSS transfòme a.

Egzanp ​

ts
import { applyMinify } from "@pantoken/plugin-props-minify";
const out = applyMinify(css, { prune: true, flatten: true, mangle: true });