Skip to content

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

License

Notifications You must be signed in to change notification settings

lwd-technology/react-app-rewire-provide-plugin

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published