webpack-merge
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -0,1 +1,6 @@ | ||
4.1.1 / 2017-11-01 | ||
================== | ||
* Docs - Add `customizeArray` and `customizeObject` examples. #93 | ||
4.1.0 / 2017-03-16 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -5,3 +5,3 @@ { | ||
"author": "Juho Vepsalainen <bebraw@gmail.com>", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"scripts": { | ||
@@ -8,0 +8,0 @@ "build": "babel src -d lib", |
@@ -54,2 +54,31 @@ [![build status](https://secure.travis-ci.org/survivejs/webpack-merge.svg)](http://travis-ci.org/survivejs/webpack-merge) [![bitHound Score](https://www.bithound.io/github/survivejs/webpack-merge/badges/score.svg)](https://www.bithound.io/github/survivejs/webpack-merge) [![codecov](https://codecov.io/gh/survivejs/webpack-merge/branch/master/graph/badge.svg)](https://codecov.io/gh/survivejs/webpack-merge) | ||
``` | ||
For example, if the previous code was invoked with only `object1` and `object2` | ||
with `object1` as: | ||
``` | ||
{ | ||
foo1: ['object1'], | ||
foo2: ['object1'], | ||
bar1: { object1: {} }, | ||
bar2: { object1: {} }, | ||
} | ||
``` | ||
and `object2` as: | ||
``` | ||
{ | ||
foo1: ['object2'], | ||
foo2: ['object2'], | ||
bar1: { object2: {} }, | ||
bar2: { object2: {} }, | ||
} | ||
``` | ||
then `customizeArray` will be invoked for each property of `Array` type, i.e: | ||
``` | ||
customizeArray(['object1'], ['object2'], 'foo1'); | ||
customizeArray(['object1'], ['object2'], 'foo2'); | ||
``` | ||
and `customizeObject` will be invoked for each property of `Object` type, i.e: | ||
``` | ||
customizeObject({ object1: {} }, { object2: {} }, bar1); | ||
customizeObject({ object1: {} }, { object2: {} }, bar2); | ||
``` | ||
@@ -56,0 +85,0 @@ ### **`merge.unique(<field>, <fields>, field => field)`** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39021
393