🔥 Update the multi cnd vendor service.

This commit is contained in:
elkan1788
2024-07-21 19:52:40 +08:00
parent d560e45ca2
commit 9e42b3fad1
16 changed files with 47 additions and 53 deletions

View File

@@ -3,17 +3,15 @@
{{ $fmt := "%s/%s@%s/%s" }}
{{ $npm := .res.name }}
{{ with .res.alias2 }}
{{ $npm = . }}
{{ end }}
{{ $file := .res.file }}
{{ if ne .router.type "nodejs" }}
{{ with .res.alias }}
{{ $npm = . }}
{{ end }}
{{ if ne .router.type "nodejs" }}
{{ $file = replaceRE `(dist|lib|source\/js)\/` "" .res.file }}
{{ $fmt = "%s/%s/%s/%s" }}
{{ else }}
{{ with .res.alias }}
{{ $npm = . }}
{{ end }}
{{ end }}
{{ $pluginRes := printf $fmt .router.url $npm .res.version $file }}