Skip to content

CodeCoupler Webpack Injected Variables

When bundling the following variables will be replaced:

  • 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: Exactly like process.env.NODE_ENV.
  • process.env.PACKAGE_NAME: The package name from the package.json. The default value is cc-webpack.