1.0.0 • Published 3 years ago

build-plugin-remove-console v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

build-plugin-remove-console

build-scripts 插件,用于构建时移除代码中的 console.* 调用。

使用

"plugins": [
  "build-plugin-component",
  "build-plugin-remove-console"
]

在项目目录的build.json中配置该插件。

build.json 配置项

removeConsoleExcludeMethod

数组,默认值为 []。用于构建时移除所有 console.* 调用,可通过该配置项设置免于移除的 console.* 方法。