https://github.com/lwd-technology/react-app-rewire-provide-plugin
Add webpack.ProvidePlugin to a react-app-rewired config.
https://github.com/lwd-technology/react-app-rewire-provide-plugin
react-app-rewired webpack
Last synced: about 2 months ago
JSON representation
Add webpack.ProvidePlugin to a react-app-rewired config.
- Host: GitHub
- URL: https://github.com/lwd-technology/react-app-rewire-provide-plugin
- Owner: lwd-technology
- License: mit
- Created: 2017-09-18T22:03:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-19T03:42:53.000Z (over 7 years ago)
- Last Synced: 2025-03-18T12:59:52.482Z (2 months ago)
- Topics: react-app-rewired, webpack
- Language: JavaScript
- Size: 33.2 KB
- Stars: 4
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-app-rewire-provide-plugin
Add `webpack.ProvidePlugin` to a [`react-app-rewired`](https://github.com/timarney/react-app-rewired) config.
```js
const rewireProvidePlugin = require('react-app-rewire-provide-plugin')// Use `webpack.ProvidePlugin` to add jQuery globally
config = rewireProvidePlugin(config, env, {
'window.jQuery': 'jquery'
})
```