Skip to content

AnacondaY/no-console-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
	]
})

About

A webpack plugin to clear specific type of console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published