mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +00:00
fix(kit): template dst should become plugin src (#448)
This commit is contained in:
parent
d3582bf1e8
commit
6c37bad73a
@ -135,9 +135,10 @@ export function addPluginTemplate (plugin: NuxtPluginTemplate | string, opts: Ad
|
|||||||
if (typeof plugin === 'string') {
|
if (typeof plugin === 'string') {
|
||||||
plugin = { src: plugin }
|
plugin = { src: plugin }
|
||||||
}
|
}
|
||||||
if (!plugin.src) {
|
|
||||||
|
// Update plugin src to template destination
|
||||||
plugin.src = addTemplate(plugin).dst
|
plugin.src = addTemplate(plugin).dst
|
||||||
}
|
|
||||||
return addPlugin(plugin, opts)
|
return addPlugin(plugin, opts)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user