UNPKG
console-prefix-webpack-plugin
Version:
latest (1.2.0)
1.2.0
Add a prefix before the console method for Webpack plugin.
console-prefix-webpack-plugin
/
README.md
12 lines
(9 loc)
•
208 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
Add a prefix before the console
method
for
Webpack
plugin
. ###
Demo
```
ts
new
ConsolePrefixWebpackPlugin
(
{ prefix:
'[ConsolePrefix] '
, methodList: [
'log'
,
'warn'
,
'error'
], webpack, }),
``
`