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 Feb 23, 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.

other

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

Use rewire in webpack.


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

Clone this wiki locally