build-plugin-teamix
build-scripts 插件,支持基于teamix的业务开发。
使用
"plugins": [
"build-plugin-react-app",
"build-plugin-teamix"
]
在项目目录的build.json
中配置该插件。
build.json 配置项
assetsInfo
布尔值,默认值为 false
。若项目采用 git 管理,会在构建产物中注入 git 信息,可通过 window.__assets_info__
获取相关信息。
removeConsoleExcludeMethod(1.2.0版本添加)
数组,默认值为 []
。用于构建时移除所有 console.*
调用,可通过该配置项设置免于移除的 console.*
方法。