[module] support plugins injectAs

This commit is contained in:
Pooya Parsa 2017-05-15 01:09:27 +04:30
parent c7f31b6492
commit 11cb84d239

View File

@ -55,7 +55,8 @@ class Module {
// Add to nuxt plugins // Add to nuxt plugins
this.options.plugins.push({ this.options.plugins.push({
src: '~/.nuxt/' + dst, src: '~/.nuxt/' + dst,
ssr: Boolean(template.ssr) ssr: Boolean(template.ssr),
injectAs: template.injectAs
}) })
} }