refactor: use spread syntax for plugin push (#4976)

This commit is contained in:
Alexander Lichter 2019-02-07 15:00:04 +00:00 committed by Pooya Parsa
parent a03dafbe97
commit 31cb18737b

View File

@ -346,7 +346,7 @@ export default class WebpackBaseConfig {
plugins.push(new VueLoader.VueLoaderPlugin()) plugins.push(new VueLoader.VueLoaderPlugin())
Array.prototype.push.apply(plugins, this.options.build.plugins || []) plugins.push(...(this.options.build.plugins || []))
// Hide warnings about plugins without a default export (#1179) // Hide warnings about plugins without a default export (#1179)
plugins.push(new WarnFixPlugin()) plugins.push(new WarnFixPlugin())