Skip to content

pantoken-root / renderers/pendo/src / addImportant

Változó: addImportant ​

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

Béta

Hozza létre az add-!important beépülőmodult.

Type Declaration ​

Visszatérési érték ​

Plugin

postcss ​

postcss: true

Kötelező PostCSS plugin jelölő.

Példa ​

ts
import postcss from "postcss";
import { addImportant } from "@pantoken/pendo";

const { css } = postcss([addImportant()]).process(".x{color:red}", { from: undefined });
// ".x{color:red !important}"