fix(plugins): use resolvePath for src

#1162
This commit is contained in:
Pooya Parsa 2017-07-26 16:28:59 +04:30
parent 797ba24444
commit 28f549903b

View File

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