Skip to content

pantoken / renderers/pendo/src / addImportant

Variable: addImportant

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

Bêta

Créer le plugin add-!important.

Type Declaration

Renvoie

Plugin

postcss

postcss: true

Marqueur requis pour le plugin PostCSS.

Exemple

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

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