Skip to content

pantoken-root / renderers/pendo/src / addImportant

Variabele: addImportant ​

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

Bèta

Maak de add-!important plugin.

Type Declaration ​

Retourneert ​

Plugin

postcss ​

postcss: true

Vereist marker voor PostCSS-plugin.

Voorbeeld ​

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

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