Dependency injection for webpack bundles
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.jshintignore
.jshintrc
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
package.json

README.md

rewire-webpack

Use rewire in webpack bundles.

Dependency Status

This is a plugin that enables rewire for client-side bundles generated by webpack.

npm status


Installation

npm install rewire-webpack

and then add the RewirePlugin to the webpack config:

var RewirePlugin = require("rewire-webpack");
var webpackConfig = {
    plugins: [
        new RewirePlugin()
    ]
};

After that you can use rewire() in your client-side bundles as usual.


Contribution

Thanks to sokra who wrote most of the code. :)


License

Unlicense