clear-console-loader
v1.0.2
Published
clear All `console`, you can ignore words
Downloads
1
Readme
clear-console-loader
clear-console-loader
is webpack loader, can clear console
in files;
options
| options | type | default | desc | | ------- | --------- | ------- | ------------------------------------------- | | ignore | string[] | [] | you need to be string or variable to ignore |
example
// webpack.config.js
{
module: {
rules: [
test: /\.js(x?)$/,
exclude: /node_modules/,
use: [
{
loader: 'clear-console-loader',
options: {
ignore: ["err", "error"]
}
}]
}
}