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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:JavaScript 100.0%