GitLab pipelined print build information plug-ins
Goal: The console displays the builder, build time, branch, and latest COMMIT information of the current running code, so that you can easily confirm whether the wrong version is missing.
Attention: Only useful in GitLab pipeline
You can view the deployment information for the code in the console
pnpm i -D vite-plugin-gitlab-flow
or
yarn add -D vite-plugin-gitlab-flow
or
npm i -D vite-plugin-gitlab-flow
vite.config.js/ts
import vitePluginGitLabFlow from "vite-plugin-gitlab-flow";
plugins: [
vitePluginGitLabFlow({
projectName: '榕树工具',
debug: true,
extra: [
{
keys: 'VITE_APP_TITLE',
label: '项目title'
}
],
styles:{
color: 'red',
}
}),
]
options | description | type | default |
---|---|---|---|
projectName? | project name | string | package.name |
debug? | debug | boolean | false |
extra? | Extra display field | string | [] |
styles? | Custom style | Style | Style |
Thanks vite-plugin-aliyun-flow the ideas and code.