Neurotic Pantaloon Maker
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

webpack-delete-plugin

0.1.1 • Public • Published

Webpack Delete Plugin

The Webpack Delete plugin is used to delete files after completing the output process.

Installation

npm install webpack-delete-plugin --save-dev

Use

This plugin runs async after the output has been completed. Use it to delete files after they've been built! This plugin does not clean folders for pre-processing.

General Use

 
module.exports = {
  ...
  plugins: [
    new WebpackDeletePlugin(["./path/file.js", "./path/**/*", "./path/folder/**"])
  ]
}

Delete entire folders with ./path/folder/** - this will delete the folder and everything inside.

WebpackDeletePlugin takes a string or array of strings as input.

Keywords

none

install

npm i webpack-delete-plugin

Downloadsweekly downloads

5

version

0.1.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar