Skip to content

pantoken / renderers/pendo/src / addImportant

Змінна: addImportant

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

Бета

Створити плагін add-!important.

Type Declaration

Повертає

Plugin

postcss

postcss: true

Обов'язковий маркер плагіна PostCSS.

Приклад

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

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