New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

clean-before-output-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-before-output-webpack-plugin

The webpack plugin for clean directory before webpack output bundle files

latest
Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

clean-before-output-webpack-plugin

在webpack输出文件之前删除目录的plugin,仅在webpack4.x下测试可用

使用

npm i clean-before-output-webpack-plugin -D
// webpack config
const { resolve } = require('path');
const CleanBeforeOutputWebpackPlugin = require('clean-before-output-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new CleanBeforeOutputWebpackPlugin({
      path: resolve(__dirname, 'dist/'),
    }),
  ],
  // ...
};

参数

path

在输出文件前要删除的目录,需要绝对路径。

Keywords

Webpack

FAQs

Package last updated on 09 Jul 2019

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