Plugins

Plugins

webpack has a rich plugin interface. Most of the features within webpack itself use this plugin interface. This makes webpack flexible.

Name Description
Generates chunks of common modules shared between entry points and splits them into separate bundles, e.g., vendor.bundle.js && app.bundle.js
Use components with webpack
Prepare compressed versions of assets to serve them with Content-Encoding
Allows global constants configured at compile time, useful for allowing different behavior between dev/release builds
Shorthand for using the DefinePlugin on process.env keys.
Provide means to split bundles in a way that can drastically improve build time performance.
Extracts Text (CSS) from your bundles into a separate file (app.bundle.css)
Simplifies creation of HTML files (index.html) to serve your bundles
Excludes certain modules from bundles
Adds i18n support to your bundles
Set min/max limits for chunking to fine tune and control chunking
Replaces resource that matches a regexp

Awesome For more third-party plugins, see the list from awesome-webpack.

© JS Foundation and other contributors
Licensed under the Creative Commons Attribution License 4.0.
https://webpack.js.org/plugins/

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部