Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

null-webpack-plugin

dazhan4ISC1.0.2

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

clean, plugin, webpack

readme

Clean Plugin for WebPack

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

Installation

npm install --save-dev null-webpack-plugin

Usage

const NullWebpackPlugin=require('null-webpack-plugin');

module.exports={
    ...

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

    ...
}

module.exports={
    ...

    plugins:[
        //exclude output.path folder
        new NullWebpackPlugin({exclude:'.git'})
    ]
    ...
}

Thanks

xiaozhan