webpack-config-expose
v0.2.1
Published
Expose modules as global variables.
Downloads
7
Readme
webpack-config-expose
Expose modules as global variables.
Usage
Install:
npm install --save webpack-config-expose
Add to your webpack.config.babel.js
:
import expose from `webpack-config-expose`;
expose({
// map the global `React` to the local module `react`
react: 'React',
})({
/* existing webpack configuration */
})