Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhnns/rewire-webpack
Dependency injection for webpack bundles
https://github.com/jhnns/rewire-webpack
Last synced: about 1 month ago
JSON representation
Dependency injection for webpack bundles
- Host: GitHub
- URL: https://github.com/jhnns/rewire-webpack
- Owner: jhnns
- License: unlicense
- Created: 2013-02-23T16:24:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-07T18:43:30.000Z (almost 8 years ago)
- Last Synced: 2024-11-09T20:01:28.850Z (about 2 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 121
- Watchers: 6
- Forks: 20
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
rewire-webpack
=====
**Use [rewire](https://github.com/jhnns/rewire) in webpack bundles**.[![Dependency Status](http://david-dm.org/jhnns/rewire-webpack/status.svg)](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).
[![npm status](https://nodei.co/npm/rewire-webpack.svg?downloads=true&stars=true)](https://npmjs.org/package/rewire-webpack)
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.
Contribution
------------Thanks to [sokra](https://github.com/sokra) who wrote most of the code. :)
License
-------[Unlicense](http://unlicense.org/)