gitlab-flow-webpack-plugin
v1.0.2
Published
控制台打印构gitLab流水线建信息插件
Downloads
9
Maintainers
Readme
gitlab-flow-webpack-plugin
控制台打印构gitLab流水线建信息插件
目的: 准确的在控制台看到当前运行代码的构建人、构建时间、分支、最新的COMMIT信息等
掘金文章 https://juejin.cn/post/7140516996428333070
效果
可以在控制台查看代码的部署信息
使用
只在gitLab
安装
npm i gitlab-flow-webpack-plugin --D
在vite.config.js/ts中配置
import webpackPluginGitlabFlow from "gitlab-flow-webpack-plugin";
// plugins
plugins: [
new webpackPluginGitlabFlow(),
...
]
插件参数
目前版本只有一个项目名称配置
interface options {
projectName?: string; // 项目名称 没有配置的话会取 package.json里的name字段。
}