Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 992 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 992 Bytes

rewire-webpack

Dependency injection for webpack bundles.

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

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

MIT