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

webpack-clean

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-clean

A webpack plugin to clean specified files after build

1.0.0
Source
npm
Version published
Weekly downloads
974
9.07%
Maintainers
1
Weekly downloads
 
Created
Source

Webpack Clean

A webpack plugin to clean specified files after build

Getting started

Install the plugin:

npm install webpack-clean --save-dev

API

new WebpackCleanPlugin(files: array, [basePath: string])
  • files � array of files relative to basePath or to context of your config (if basePath param is not specified),
  • basePath (this is optional) � directory to be resolved to

Usage

var WebpackCleanPlugin = require('webpack-clean');

module.exports = {
    context: path.join(__dirname, 'app'),
    plugins: [
        new WebpackCleanPlugin([
            'dist/fileA.js',
            'dist/fileB.js'
        ])
    ]
};

module.exports = {
    plugins: [
        new WebpackCleanPlugin([
            'dist/fileA.js',
            'dist/fileB.js'
        ], path.join(__dirname, 'app'))
    ]
};

Keywords

webpack

FAQs

Package last updated on 07 Sep 2015

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