Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

webpack plugins

Tobias Koppers edited this page Nov 6, 2013 · 37 revisions

webpack plugins

config

webpack/lib/NormalModuleReplacementPlugin(resourceRegExp, newResource)

Replace resources that matches resourceRegExp with newResource.

webpack/lib/ContextReplacementPlugin(resourceRegExp, newContentRegExp)

Replaces the default regExp generated by parsing with newContextRegExp if the resource (directory) matches resourceRegExp.

webpack/lib/IgnorePlugin(requestRegExp)

Don't generate modules for requests matching the provided RegExp.

webpack/lib/BannerPlugin(banner, options)

Adds a banner to the top of each generated chunk.

banner a string, it will be wrapped in a comment

options.raw if true, banner will not be wrapped in a comment

options.entryOnly if true, the banner will only be added to the entry chunks.

module styles

Use component with webpack.

dependency injection

Use rewire in webpack.

localization

Create bundles with translations baked in. Then you can serve the translated bundle to your clients.

other


For a list of plugins used by webpack internally see internal webpack plugins

Clone this wiki locally