Skip to content

Repository files navigation

Webpack Terminal Banner Plugin

Webpack plugin for showing banner after all notifications

npm Version Terminal Banner Plugin

Terminal banner screenshot

Using

// webpack.config.js
const TerminalBannerPlugin = require('@inoy/terminal-banner-plugin')
// other code

module.exports = {
    //… rest of your webpack config
    plugins: [
        new WebpackNotifier2Plugin(/* check out my other plugin ;-) */),
        new TerminalBannerPlugin({
            emptyLineBefore: false, // optional; put empty line before the banner
            emptyLineAfter: false // optional; put empty line after the banner
        })
    ]
}

Also you can use couple of functions getTag and getBranch separately

const terminalBannerPlugin = new TerminalBannerPlugin()

const currentTag = terminalBannerPlugin.getTag() ?? 'unknown tag'
const currentBranch = terminalBannerPlugin.getBranch() ?? 'unknown branch'

The banner will show only in development mode

Requirements

Minimal supported Node version is 20.19.

License

GPLv3

About

Webpack plugin for showing banner after all notifications

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages