rewire-webpack

Dependency injection for webpack bundles

npm install rewire-webpack
9 downloads in the last day
11 downloads in the last week
28 downloads in the last month

rewire-webpack

Dependency injection for webpack bundles.

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

Dependency 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. Checkout test/README.md and test/webpack.config.js for a real-world example with the webpack-dev-server.


Contribution

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


License

Unlicense

npm loves you