Skip to content

Latest commit

 

History

History
38 lines (36 loc) · 554 Bytes

README.md

File metadata and controls

38 lines (36 loc) · 554 Bytes

no-console-webpack-plugin

A webpack plugin to clear specific type of console

Install

npm install no-console-webpack-plugin --save-dev

Or

yarn add no-console-webpack-plugin --dev

Usage

const NoConsolePlugin = require('no-console-webpack-plugin');
module.exports = {
//in your webpack.config.js
//other config...
plugins:[
	new NoConsolePlugin()
]
}

Options

ignores:{String|Array}

new NoConsolePlugin({
	ignores:'log'
});
//or
new NoConsolePlugin({
	ignores:[
		'log',
		'info',
		'warn'
	]
})