Home

Awesome

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'
})