mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
parent
797ba24444
commit
28f549903b
@ -49,7 +49,7 @@ export default class Builder extends Tapable {
|
|||||||
get plugins () {
|
get plugins () {
|
||||||
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 = 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}` }
|
return { src: p.src, ssr: (p.ssr !== false), name: `plugin${i}` }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user