Skip to content

pantoken-root / renderers/pendo/src / addImportant

變數: addImportant ​

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

Beta(測試)

建立 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}"