1 | const merge = require('lodash.merge')
|
2 |
|
3 | module.exports = (config, cliConfig) => {
|
4 | const devServer = merge({}, config.devServer, cliConfig.devServer, {
|
5 | proxy: []
|
6 | .concat((config.devServer && config.devServer.proxy) || [])
|
7 | .concat(cliConfig.devServer.proxy || [])
|
8 | })
|
9 | return merge({}, config, cliConfig, {
|
10 | devServer
|
11 | })
|
12 | }
|