@yeutech-lab/react-app-rewire-define-plugin

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @yeutech-lab/react-app-rewire-define-plugin

Weekly Downloads

61

Version

1.0.0

License

MIT

Unpacked Size

4.05 kB

Total Files

8

Last publish

Collaborators

  • kopax