Skip to content

pantoken / renderers/pendo/src / addImportant

ตัวแปร: addImportant

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

เบต้า

สร้างปลั๊กอิน 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}"