1.0.0 • Published 2 years ago

webpack-clean-files-plugin v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Clean Plugin

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

Installation

npm install --save-dev webpack-clean-files-plugin

Usage

// webpack.config.js

const CleanPlugin = require('webpack-clean-files-plugin')

module.exports = {
  ···

  plugins: [
        // clean output.path folder
        new CleanPlugin(),
    ],

  ···
}

module.exports = {
  ···

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

  ···
}