Modules: unshit plugins to be executed first

This commit is contained in:
Sebastien Chopin 2017-06-06 14:51:30 +02:00
parent c4613ce34b
commit c25aa4bc45
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class Module {
addPlugin (template) {
const {dst} = this.addTemplate(template)
// Add to nuxt plugins
this.options.plugins.push({
this.options.plugins.unshift({
src: path.join(this.nuxt.buildDir, dst),
ssr: template.ssr
})