A application version output in the browser console with figlet
Use npm or yarn install this webpack plugin.
npm install figlet-console-webpack-plugin --save-dev
Example
Set this in the webpack config file
new FigletConsoleWebpackPlugin({
name: 'console',
content: 'version 0.0.1',
options: {
mark: '#'
}
})
That should print out:
##################################################
_
___ ___ _ __ ___ ___ | | ___
/ __| / _ \ | '_ \ / __| / _ \ | | / _ \
| (__ | (_) | | | | | \__ \ | (_) | | | | __/
\___| \___/ |_| |_| |___/ \___/ |_| \___|
##################################################
version 0.0.1
You can set a string, default value: 'Standard'. Only support: 'Ghost' and 'Standard'.
You can set a string, default value: '#'.
You can set a string, default value: '#333'.
You can set a boolean, default value: false. If you set true, that only print out in production environment.
You can set a number, default value: 50. This needs to be adjusted according to name with figlet.