
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
cache-webpack-plugin
Advanced tools
# 先安装插件
$ (c)npm install cache-webpack-plugin -D
# 引入插件 webpack.config.js(配置文件)
$ const CacheWebpackPlugin = require('cache-webpack-plugin')
# 使用插件
$ plugins: [(new CacheWebpackPlugin()]
# 首次构建所有项目
$ npm run build
# 修改文件后再次构建
$ npm run build
# 参数设置
{
# 是否生成所有
all: false ,
# 缓存文件名称
filename: ''
}
1、可结合cache-loader配合使用节省打包时间,但是cache-loader和提取css插件有问题,主要是执行顺序问题,可以参考这个issues(issues)
xiayulin
FAQs
webpack生成只修改文件
We found that cache-webpack-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
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.