Skip to content

Commit

Permalink
fix(webpack): run chainWebpack after all plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
hjvedvik committed Nov 12, 2018
1 parent b4b50bd commit 2cc5850
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gridsome/lib/app/App.js
Expand Up @@ -89,6 +89,13 @@ class App {
this.plugins.push({ api, entry, instance })
})

// run config.chainWebpack after all plugins
if (typeof this.config.chainWebpack === 'function') {
this.on('chainWebpack', {
handler: this.config.chainWebpack
})
}

this.isInitialized = true

return this
Expand Down

0 comments on commit 2cc5850

Please sign in to comment.