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

clean2-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

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[modified from clean-webpack-plugin]

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

Clean for webpack

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

This is a modified version, you can find original clean-webpack-plugin from [clean-webpack-plugin](https://github.com/johnagan/clean-webpack-plugin], but original version has a problem that I can not specify deleting targets as you want. please checkout source code if you are intrested in.

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

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc