Skip to content

pantoken-root / renderers/pendo/src / addImportant

Pembolehubah: addImportant ​

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

Beta

Buat plugin add-!important.

Type Declaration ​

Mengembalikan ​

Plugin

postcss ​

postcss: true

Penanda plugin PostCSS yang diperlukan.

Contoh ​

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

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