npm

@sprit/console-tag
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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 ?? '-',
          };
        },
      }
    )
  )
}

Package Sidebar

Install

npm i @sprit/console-tag

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

117 kB

Total Files

28

Last publish

Collaborators

  • fantian001