Skip to content

pantoken / renderers/pendo/src / addImportant

Zmienna: addImportant

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

Beta

Utwórz wtyczkę add-!important.

Type Declaration

Zwraca

Plugin

postcss

postcss: true

Wymagany znacznik wtyczki PostCSS.

Przykład

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

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