webpack-merge

  • Version 5.10.0
  • Published
  • 47.9 kB
  • 3 dependencies
  • MIT license

Install

npm i webpack-merge
yarn add webpack-merge
pnpm add webpack-merge

Overview

Variant of merge that's useful for webpack configuration

Index

Functions

function customizeArray

customizeArray: (rules: {
[s: string]: CustomizeRule | CustomizeRuleString;
}) => (a: any, b: any, key: Key) => any;

    function customizeObject

    customizeObject: (rules: {
    [s: string]: CustomizeRule | CustomizeRuleString;
    }) => (a: any, b: any, key: Key) => any;

      function merge

      merge: <Configuration extends object>(
      firstConfiguration: Configuration | Configuration[],
      ...configurations: Configuration[]
      ) => Configuration;

        function mergeWithCustomize

        mergeWithCustomize: <Configuration extends object>(
        options: ICustomizeOptions
        ) => (
        firstConfiguration: Configuration | Configuration[],
        ...configurations: Configuration[]
        ) => Configuration;

          function mergeWithRules

          mergeWithRules: (
          rules: Rules
          ) => (firstConfiguration: object | object[], ...configurations: object[]) => object;

            function unique

            unique: (
            key: string,
            uniques: string[],
            getter: (a: object) => string
            ) => (a: [], b: [], k: string) => false | any[];

              Enums

              enum CustomizeRule

              enum CustomizeRule {
              Match = 'match',
              Merge = 'merge',
              Append = 'append',
              Prepend = 'prepend',
              Replace = 'replace',
              }

                member Append

                Append = 'append'

                  member Match

                  Match = 'match'

                    member Merge

                    Merge = 'merge'

                      member Prepend

                      Prepend = 'prepend'

                        member Replace

                        Replace = 'replace'

                          Package Files (3)

                          Dependencies (3)

                          Dev Dependencies (8)

                          Peer Dependencies (0)

                          No peer dependencies.

                          Badge

                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/webpack-merge.

                          • Markdown
                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/webpack-merge)
                          • HTML
                            <a href="https://www.jsdocs.io/package/webpack-merge"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>