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

webpack plugins

sokra edited this page Mar 18, 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.

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