react-app-rewire-provide-plugin

Add webpack.ProvidePlugin to a react-app-rewired config.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-app-rewire-provide-plugin
301.0.05 years ago5 years agoMinified + gzip package size for react-app-rewire-provide-plugin in KB

Readme

react-app-rewire-provide-plugin
Add webpack.ProvidePlugin to a react-app-rewired config.
const rewireProvidePlugin = require('react-app-rewire-provide-plugin')

// Use `webpack.ProvidePlugin` to add jQuery globally
config = rewireProvidePlugin(config, env, {
  'window.jQuery': 'jquery'
})