From c111e2cc118892e523cd9097ee1a5d09bb7dd3ac Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 26 Jul 2017 16:49:09 +0430 Subject: [PATCH] fix plugins resolvePath --- lib/builder/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/builder.js b/lib/builder/builder.js index 095397b67b..db6575e5bb 100644 --- a/lib/builder/builder.js +++ b/lib/builder/builder.js @@ -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 = this.nuxt.resolvePath(this.options.srcDir, p.src) + p.src = this.nuxt.resolvePath(p.src) return { src: p.src, ssr: (p.ssr !== false), name: `plugin${i}` } }) }