rewire-webpack

Dependency injection for webpack bundles

7 个版本
安装
npm install rewire-webpack
yarn add rewire-webpack
pnpm add rewire-webpack
bun add rewire-webpack
README

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

版本列表
1.0.1 2015-11-15
1.0.0 2014-11-04
0.2.0 2014-07-11
0.1.0 2014-04-06
0.0.2 2013-10-04
0.0.1 2013-10-03
0.0.0 2013-03-13