> For the complete documentation index, see [llms.txt](https://mm.ricky.moe/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mm.ricky.moe/frontend-ecosystem/webpack/chang-yong-webpack-cha-jian-ji-lu.md).

# 常用Webpack插件记录

## PurgecssPlugin

用于自动清除未使用的CSS

{% embed url="<https://www.npmjs.com/package/purgecss-webpack-plugin>" %}

## Git revision webpack plugin

用于输出项目的版本号

{% embed url="<https://www.npmjs.com/package/git-revision-webpack-plugin>" %}

## Html webpack plugin

处理html

{% embed url="<https://www.npmjs.com/package/html-webpack-plugin>" %}
