https://github.com/webpack-config/webpack-config-expose
https://github.com/webpack-config/webpack-config-expose
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/webpack-config/webpack-config-expose
- Owner: webpack-config
- Created: 2016-01-24T22:16:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-07T06:29:43.000Z (over 10 years ago)
- Last Synced: 2025-12-31T17:51:31.735Z (7 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-config-expose
Expose modules as global variables.





## Usage
Install:
```sh
npm install --save webpack-config-expose
```
Add to your `webpack.config.babel.js`:
```javascript
import expose from `webpack-config-expose`;
expose({
// map the global `React` to the local module `react`
react: 'React',
})({
/* existing webpack configuration */
})
```
[webpack]: https://webpack.github.io