Module

webpack/app-production

Production Webpack configuration for applications.

View Source config/webpack/app-production.js, line 1

Methods

# inner factoryConfig(ops) → {object}

const configFactory = require('@dr.pogodin/react-utils/config/webpack/app-production');

Creates a new production Webpack config, and performs some auxiliary operations on the way. This configuration is based on webpack/app-base and it differs from that in the following:

  • production Babel environment is enforced;
  • Emulates the following environment variables:
    • BABEL_ENV — It is set to production;
    • NODE_ENV — It is set to production.
  • Adds the following plugins:
Parameters:
Name Type Description
ops object

Accepts same options as the base config.

View Source config/webpack/app-production.js, line 13

object