mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +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') {
|
||||
plugin = { src: plugin }
|
||||
}
|
||||
if (!plugin.src) {
|
||||
plugin.src = addTemplate(plugin).dst
|
||||
}
|
||||
|
||||
// Update plugin src to template destination
|
||||
plugin.src = addTemplate(plugin).dst
|
||||
|
||||
return addPlugin(plugin, opts)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user