Variable defaultConfigsConst

defaultConfigs: {
    development(baseConfig?, moreParts?): any;
    karma(baseConfig?, moreParts?): any;
    production(baseConfig?, moreParts?): any;
} = ...

Provide out of the box default webpack configs for various modes:

Available configs:

  • development() - for development
  • production() - for building production
  • karma() - for running karma tests

Type declaration

  • development:function
    • generate webpack config for development

      Basically: applyPartials({}, [...profiles.base, ...profiles.development])

      Parameters

      • baseConfig: PlainConfig = {}

        base config to merge into (not mutated)

      • moreParts: any[] = []

        more partials to apply (will override)

      Returns any

      a new webpack config ready for use

  • karma:function
    • generate webpack config for running karma tests

      Basically: applyPartials({}, [...profiles.base, ...profiles.karma])

      Parameters

      • baseConfig: PlainConfig = {}

        base config to merge into (not mutated)

      • moreParts: any[] = []

        more partials to apply (will override)

      Returns any

      a new webpack config ready for use

  • production:function
    • generate webpack config for production

      Basically: applyPartials({}, [...profiles.base, ...profiles.production])

      Parameters

      • baseConfig: PlainConfig = {}

        base config to merge into (not mutated)

      • moreParts: any[] = []

        more partials to apply (will override)

      Returns any

      a new webpack config ready for use