0.0.4 • Published 5 years ago

babel-plugin-marsimple-log v0.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

简化console.log()

将console以注释形式表示 // >s === console.log(s)

解决

1. 以注释来表示,即使忘记删掉也没事 2. 简化了console.log()过于冗长的写法

用法

  npm i babel-plugin-marsimple-log -D

  建立.babelrc文件

  {
    ...
    "env": {
      "development": {
        plugins: [[{
          "marsimple-log", {
            sign: '#' // sign字段改变了 // >s -> #s写法,只允许'{', '>', '?', ':', '*', '$', '%', '#', '@', '!'
          }
        }]]
      }
    }
  }
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago