react-app-rewire-define-plugin

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

Downloads in past

Stats

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

Readme

react-app-rewire-define-plugin
Add webpack.DefinePlugin to a react-app-rewired config.
const rewireDefinePlugin = require('react-app-rewire-define-plugin')

// Use `webpack.DefinePlugin` to add the version number from package.json
config = rewireDefinePlugin(config, env, {
  'process.env.VERSION': JSON.stringify(require('package.json').version)
})