twreporter-react
Version:
React-Redux site for The Reporter Foundation in Taiwan
43 lines (28 loc) • 1.04 kB
Markdown
rewire-webpack
=====
**Use [rewire](https://github.com/jhnns/rewire) in webpack bundles**.
[](http://david-dm.org/jhnns/rewire-webpack)
This is a plugin that enables [rewire](https://github.com/jhnns/rewire) for client-side bundles generated by [webpack](https://github.com/webpack/webpack).
[](https://npmjs.org/package/rewire-webpack)
<br />
Installation
------------
`npm install rewire-webpack`
and then add the RewirePlugin to the webpack config:
```javascript
var RewirePlugin = require("rewire-webpack");
var webpackConfig = {
plugins: [
new RewirePlugin()
]
};
```
After that you can use `rewire()` in your client-side bundles as usual.
<br />
Contribution
------------
Thanks to [sokra](https://github.com/sokra) who wrote most of the code. :)
<br />
License
-------
[Unlicense](http://unlicense.org/)