Skip to content

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

Interface: PropsMinifyOptions

Beta

Options for applyMinify.

Properties

prune?

optional prune?: boolean

Beta

Apply pruneCustomProps to tree-shake unused --instui-* tokens before other transforms.

Only safe for self-contained bundles that contain both token definitions and the component rules that reference them. Pruning a token-only sheet removes everything.

Default Value

false


flatten?

optional flatten?: boolean | FlattenPropertyOptions

Beta

Apply flattenProperty to convert @property at-rules to plain declarations.

true uses plugin defaults (injectSelector: ":root", onMissingInitialValue: "remove"). Pass a FlattenPropertyOptions object to override individual defaults.

Default Value

false


mangle?

optional mangle?: boolean | MangleCustomPropsOptions

Beta

Apply mangleCustomProps to replace long --instui-* names with minimal identifiers.

true uses plugin defaults (prefix: "--instui-", method: "base26"). Pass a MangleCustomPropsOptions object to override individual defaults — including sharedManifest for cross-file coordination.

Only safe for self-contained bundles. See module-level docs.

Default Value

false