Skip to content

pantoken / 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}"