网页 综合 更新时间 2026-11-14 05:12:02

Plugins | webpack

自动蜘蛛 webpack.js.org 正文约 1507 字
Plugins | webpack
Webpack has a rich plugin interface. Most of the features within webpack itself use this plugin interface. This makes webpack flexible.
CSS and HTML are built in — stable and on by default — so neither needs a plugin here: mini-css-extract-plugin and html-webpack-plugin are deprecated. The Native CSS and Native HTML guides cover what each one builds in (CSS, HTML) and how to move an existing setup over.
The plugins below are grouped by what they do. Most ship with webpack itself and are used as new webpack.SomePlugin(); the ones whose page lives under a *-webpack-plugin name are separate packages to install first.
Several of these exist mainly because a configuration option did not always cover the case. Where an option does the same job today it is named in the row; prefer the option, since it is what the defaults are built on.
For more third-party plugins, see the list from awesome-webpack.
Copyright OpenJS Foundation and webpack contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | Bylaws | Code of Conduct | Trademark Policy | Trademark List | Cookie Policy
访问原文 返回搜索 https://webpack.js.org/plugins/
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。