New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

clean2-webpack-plugin

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean2-webpack-plugin

A webpack plugin to remove your build folder(s) before building[modify from clean-webpack-plugin]

0.1.5
66

Supply Chain Security

100

Vulnerability

70

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Dependencies have 2 high alerts.

High CVE

Version published
Weekly downloads
16
1500%
Maintainers
1
Weekly downloads
 
Created

Clean for webpack

A webpack plugin to remove/clean your build folder(s) before building

you can find original clean-webpack-plugin from https://github.com/johnagan/clean-webpack-plugin, but I can not specify deleting target as I want.

Installation

npm i clean2-webpack-plugin --save

Example Webpack Config

var CleanFolders = require('clean2-webpack-plugin');

module.exports = {
  plugins: [
    new CleanFolders(['dist', 'build'],'you must specify absolute context path')
  ]
}

Parameters

new CleanFolders(paths , context)
  • paths - An array of string paths to clean
  • context - You have to specify your context root just like webpack.config.js context value

License

http://www.opensource.org/licenses/mit-license.php

FAQs

Package last updated on 04 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts