Skip to content

pantoken / plugins/postcss/flatten-property/src / flattenProperty

Variable: flattenProperty

const flattenProperty: {(options?): Plugin; postcss: true; }

Behta

Geahččat flatten-@property PostCSS-plugin.

Gola buot @property at-ruovttaid sihkkarvuođas, čearrá juohke initial-value descriptora, váldá at-ruovtta ja dovdet muohta injectSelector { --name: value; … } ruvdna mii leat buot čearrádat. Nuppástallan ruvdnat ja @layer blokkat maid gávdnadan maŋŋil geavahit, heidet fårrajit.

Type Declaration

Parametera

options?

FlattenPropertyOptions

FlattenPropertyOptions.

Gullii / Gávdnat

Plugin

PostCSS Plugin.

postcss

postcss: true

Dárbbuheapmi PostCSS-plugga-márgga.

Exempla

Davvin-injektuvdna :root:sse

ts
import postcss from "postcss";
import { flattenProperty } from "@pantoken/plugin-flatten-property";

const out = postcss([flattenProperty()]).process(css, { from: undefined }).css;

Injektat :scope:sse (dát leat bures dávjján scope-blokkat)

ts
import postcss from "postcss";
import { flattenProperty } from "@pantoken/plugin-flatten-property";

const out = postcss([flattenProperty({ injectSelector: ":scope" })]).process(css, { from: undefined }).css;
ts
Preserve