Merge designed for Webpack (MIT)
Become a contributor
See how money openly circulates through webpack-merge. All contributions and all expenses are published in our transparent public ledger. Learn who is donating, how much, where is that money going, submit expenses, get reimbursed and more!
webpack-merge is all of us
Our contributors 2
Everyone who has supported webpack-merge. Individuals and organizations that believe in –and take ownership of– our purpose.
webpack-merge provides a
merge function that concatenates arrays and merges objects creating a new object. If functions are encountered, it will execute them, run the results through the algorithm, and then wrap the returned values within a function again.
This behavior is particularly useful in configuring webpack although it has uses beyond it. Whenever you need to merge configuration objects, webpack-merge can come in handy.
There's also a webpack specific merge variant known as
merge.smart that's able to take webpack specifics into account (i.e., it can flatten loader definitions).