Fix cryptic plugin message

Fixes https://github.com/nuxt/nuxt.js/issues/1744
This commit is contained in:
Emmanuel Goh 2017-10-04 20:43:19 +08:00 committed by GitHub
parent f654c9c94c
commit c9b48df5cc

View File

@ -63,7 +63,7 @@ export default class Builder extends Tapable {
return this.options.plugins.map((p, i) => { return this.options.plugins.map((p, i) => {
if (typeof p === 'string') p = { src: p } if (typeof p === 'string') p = { src: p }
p.src = this.nuxt.resolvePath(p.src) p.src = this.nuxt.resolvePath(p.src)
return { src: p.src, ssr: (p.ssr !== false), name: `plugin${i}` } return { src: p.src, ssr: (p.ssr !== false), name: `plugin${p.src}` }
}) })
} }