react-app-rewire-define-plugin
v1.0.0
Published
Add webpack.DefinePlugin to a react-app-rewired config.
Downloads
904
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)
})