1.1.0 • Published 2 years ago

build-plugin-build-info v1.1.0

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

build-plugin-build-info

build-scripts 插件,在产物开头插入构建信息注释,方便调试跟踪

效果

/*!
 * build by [userName] in 2022-01-01T10:20:30.000Z
 * git: [group/repository] branch: [branchName] commit: [commitId]
 * chunkhash: [chunkhash]
 */

注意:时间使用 ISO 时间格式,即 UTC+0 时区。

使用

$ npm i build-plugin-build-info --save-dev
"plugins": [
  "build-plugin-build-info",
]

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

配置项

暂无