Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 628 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 628 Bytes

cursor-pointer-loader

一个通过html标签属性快速添加指针移入效果的webpack加载器,代替繁琐的增加css,特别是一些没有其他样式的场景(A loader that quickly adds cursor pointer effects via html tag attributes)

<div __cursorPointer>this is example , __cursorPointer attributes</div>

// will be transform to 
<div style='cursor:pointer'></div>

// if you have TS , you need increase statement (this is a react example):

declare module 'react' {
  interface HTMLAttributes<T> extends DOMAttributes<T> {
    __cursorPointer?: boolean
  }
}

afterwards you can happy coding