fix: not override externals set by build.extend (#5444)

This commit is contained in:
Xin Du (Clark) 2019-04-02 13:57:45 +01:00 committed by Pooya Parsa
parent 424d641c9f
commit 1ae433355e

View File

@ -95,7 +95,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
maxEntrypointSize: Infinity, maxEntrypointSize: Infinity,
maxAssetSize: Infinity maxAssetSize: Infinity
}, },
externals: [] externals: [].concat(config.externals || [])
}) })
// https://webpack.js.org/configuration/externals/#externals // https://webpack.js.org/configuration/externals/#externals