Skip to content

pantoken / renderers/pendo/src / addImportant

Variabel: addImportant

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

Beta

Opprett pluginen add-!important.

Type Declaration

Returnerer

Plugin

postcss

postcss: true

Nødvendig PostCSS-pluginmarkør.

Døme

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

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