Skip to content

pantoken / renderers/pendo/src / addImportant

Փոփոխական: addImportant

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

Բետա

Ստեղծել add-!important պլագինը:

Type Declaration

Վերադարձվող արժեք

Plugin

postcss

postcss: true

Պահանջվող PostCSS plugin նշիչ:

Օրինակ

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

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