
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
webpack-cleanup-after-build-plugin
Advanced tools
Cleans up files from the build folder left over from previous builds, e.g. in watch mode.
This plugin is a Webpack 4 plugin that cleans up extraneous files from the output directory. This is useful when running new builds or in watch mode, where new files are created all the time, but you don't necessarily want all these old files to stick around.
The plugin runs at the end of the build (after Webpack finishes emitting files), and removes files in the output folder that were not part of the completed compilation.
Just import the plugin and add it to your Webpack configuration.
import { WebpackCleanupAfterBuildPlugin } from 'webpack-cleanup-after-build-plugin'
export default {
plugins: [
new WebpackCleanupAfterBuildPlugin(options)
]
}
You can optionally pass an options object to the plugin's constructor.
Option name | Default | Description |
---|---|---|
filesToKeep | [] | A list of files to never delete. Relative paths are assumed to be relative to the output path. |
ignoreDotFiles | true | Whether to ignore files and directories starting with a dot (".") |
Example:
new WebpackCleanupAfterBuildPlugin({
filesToKeep: [
'.mydotfile',
'not-generated-by-webpack.js'
],
ignoreDotFiles: false
})
FAQs
Cleans up files from the build folder left over from previous builds, e.g. in watch mode.
The npm package webpack-cleanup-after-build-plugin receives a total of 1 weekly downloads. As such, webpack-cleanup-after-build-plugin popularity was classified as not popular.
We found that webpack-cleanup-after-build-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.