mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
refactor: use spread syntax for plugin push (#4976)
This commit is contained in:
parent
a03dafbe97
commit
31cb18737b
@ -346,7 +346,7 @@ export default class WebpackBaseConfig {
|
||||
|
||||
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)
|
||||
plugins.push(new WarnFixPlugin())
|
||||
|
Loading…
Reference in New Issue
Block a user