前言
引入导致,因为webpackMerge的却不是一个函数呀~
内容
?> 正确示范
const webpackMerge = require('webpack-merge')
module.exports = webpackMerge.merge(webpackBaseConfig, webpackProdConfig)
# 直接引用merge函数
const { merge } = require('webpack-merge')
module.exports = merge(webpackBaseConfig, webpackProdConfig)
!> 错误示范
const webpackMerge = require('webpack-merge')
module.exports = webpackMerge(webpackBaseConfig, webpackProdConfig)
标签:function,webpackProdConfig,module,merge,webpack,webpackBaseConfig,webpackMerge
From: https://www.cnblogs.com/wangyang0210/p/16981036.html