Need help with rewire-webpack?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jhnns
123 Stars 19 Forks The Unlicense 41 Commits 12 Opened issues

Description

Dependency injection for webpack bundles

Services available

!
?

Need anything else?

Contributors list

# 9,557
webpack...
codeign...
React
Less
34 commits
# 41
JavaScr...
Webpack
coffees...
amd
2 commits
# 145,386
toggl
Firefox
Chrome
CSS
1 commit

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.