webpack-env-prefix-plugin

1.1.1 • Public • Published

webpack-env-prefix-plugin

CI npm version License Buy me a coffee

Packages the REACT_APP_* env handling from create-react-app as a standalone webpack plugin.

Usage

npm install --save-dev webpack-env-prefix-plugin
// webpack.config.js
const EnvPrefixPlugin = require('webpack-env-prefix-plugin')

module.exports = {
  plugins: [
    new EnvPrefixPlugin()
  ]
}
const config = {
  NODE_ENV: process.env.NODE_ENV,
  MY_CONFIG: process.env.REACT_APP_MY_CONFIG,
}

Package Sidebar

Install

npm i webpack-env-prefix-plugin

Weekly Downloads

212

Version

1.1.1

License

MIT

Unpacked Size

4.03 kB

Total Files

6

Last publish

Collaborators

  • anttiviljami