1.0.2 • Published 4 years ago

attach-class-loader v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

attach-class-loader

attach-class-loader 用于在项目打包阶段在 xml 模版指定节点添加 class。

options

// defaultOptions
{
  // 附加的class名称
  tranfClass: "tranf-node",
  // 该选择器选中的节点将附加 tranfClass
  tranfSelector: "p,h1,h2,h3,h4,h5,h6,img",
  // 是否为只包含了文本的div节点添加 tranfClass
  textDiv: true,
  // 文件名和对应开始处理的节点
  nodeMap: [
    { test: /.html/, nodeName: "body" },
    { test: /.vue/, nodeName: "template" }
  ]
}
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago