Skip to content

pantoken-root / renderers/pendo/src / addImportant

Variabel: addImportant ​

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

Beta

Opprett add-!important-pluginen.

Type Declaration ​

Returnerer ​

Plugin

postcss ​

postcss: true

Påkrevd PostCSS-pluginmarkør.

Eksempel ​

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

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