Skip to content

CodeCoupler Webpack Injected Variables

The following variables will be replaced when bundling:

  • process.env.NODE_ENV: Will be replaced with "production" or "development", depending on the mode in which the compilation was started. The default value is "development".
  • process.env.BABEL_ENV: Works exactly like process.env.NODE_ENV.
  • process.env.PACKAGE_NAME: The package name from the package.json. The default value is cc-webpack.