Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including webpack-delete-plugin with all npm packages installed. Try it out:

var webpackDeletePlugin = require("webpack-delete-plugin")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

webpack-delete-plugin v0.1.1

Simple post-process file deletion for Webpack.

Webpack Delete Plugin

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


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


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.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free