npm.io
1.0.2 • Published 6 years ago

empty-webpack-plugin

Licence
ISC
Version
1.0.2
Deps
2
Size
2 kB
Vulns
0
Weekly
0

Clean plugin for webpack

A webpack plugin to clean output.path folder for webpack project.

Installation

npm install --save-dev empty-webpack-plugin

Usage

const EmptyWebpackPlugin = require('empty-webpack-plugin');

module.exports = {
	...

	plugins: [
	  // clean out.path folder
		new EmptyWebpackPlugin()
	]

	...
}

module.exports = {
	...

	plugins: [
	  // exclude .git folder
		new EmptyWebpackPlugin({ exclude: '.git' })
	]

	...
}

Thanks

jirengu.com

Keywords