0.0.3 • Published 4 months ago

@liutsing/babel-plugin-extract-used-chinese v0.0.3

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

@liutsing/babel-plugin-extract-used-chinese

使用正则表达式/\p{Script=Han}/u收集项目中使用到的汉字,写入到临时目录path.resolve(os.tmpdir(), filename)

usge

in babel config file like .babelrc,

{
  "plugins": [
    [
      "@liutsing/babel-plugin-extract-used-chinese",
      {
        "filename": "<收集到的汉字存储文件名>"
      }
    ]
  ]
}
0.0.3

4 months ago