1.0.0 • Published 3 years ago
build-plugin-remove-console v1.0.0
build-plugin-remove-console
build-scripts 插件,用于构建时移除代码中的 console.*
调用。
使用
"plugins": [
"build-plugin-component",
"build-plugin-remove-console"
]
在项目目录的build.json
中配置该插件。
build.json 配置项
removeConsoleExcludeMethod
数组,默认值为 []
。用于构建时移除所有 console.*
调用,可通过该配置项设置免于移除的 console.*
方法。
1.0.0
3 years ago