1.0.1 • Published 1 year ago

@inoy/terminal-banner-plugin v1.0.1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

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

1.0.1

1 year ago

1.0.0

1 year ago

0.2.0

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago