# Function applyPartials

- applyPartials(config?, parts): any

- Apply an array of partial webpack configs into `config`

  The partials in the array is applied from left to right so the right ones override left ones.

  You can get predefined partials from this module. For example, to add your own webpack config:

  In your `webpack.config.ts`:

      import { profiles, applyPartials } from "@xarc/webpack"

      const myConfig = applyPartials({
          // your base webpack configs that are OK to get override
        },
        [
          ...profiles.base,
          ...profiles.development,
          {
            // your own webpack config that will override
            // everything else goes here
          }
        ]
      );

      export default myConfig;

  #### Parameters

  - config: PlainConfig = {}

    the base config (will not be mutated)

  - parts: any[]

    array of partials to apply

  #### Returns any

  a new config with all partials merged into `config`

  - Defined in index.ts:292