UNPKG

console-prefix-webpack-plugin

Version:

Add a prefix before the console method for Webpack plugin.

12 lines (9 loc) 208 B
Add a prefix before the console method for Webpack plugin. ### Demo ```ts new ConsolePrefixWebpackPlugin({ prefix: '[ConsolePrefix] ', methodList: ['log', 'warn', 'error'], webpack, }), ```