@sprit/console-tag
v1.0.1
Published
![示例](./images/[email protected])
Downloads
9
Maintainers
Readme
console message with color tags
rspack
rspack: (config, { appendPlugins, HtmlPlugin }) => {
appendPlugins(new ConsoleTagRspackPlugin({ HtmlPlugin }))
},
webpack
webpackChain(config, { HtmlPlugin }) {
config.plugin('tag').use(
new ConsoleTagWebpackPlugin(
{
HtmlPlugin,
git: {
branch: true,
hash: 7,
lastCommitDateTime: true,
},
custom() {
return {
构建版本: process.env.BUILD_VERSION ?? '-',
};
},
}
)
)
}