Skip to content

pantoken / renderers/pendo/src / addScope

变量: addScope

const addScope: {(options?): Plugin; postcss: true; }

Beta

创建 @scope 包装插件。

Type Declaration

参数

options?

AddScopeOptions

返回值

Plugin

postcss

postcss: true

所需的 PostCSS 插件标记。

示例

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

const { css } = postcss([addScope({ selector: "._pendo-step-container" })])
  .process(".x{color:red}", { from: undefined });
// "@scope ([class*=\"instui\"]._pendo-step-container) { .x{color:red} }"