Skip to content

pantoken-root / renderers/pendo/src / addImportant

Biến: addImportant ​

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

Beta

Tạo plugin add-!important.

Type Declaration ​

Trả về ​

Plugin

postcss ​

postcss: true

Ký hiệu bắt buộc của plugin PostCSS.

Ví dụ ​

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

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