mirror of https://github.com/onweru/compose.git

weru
28.34.2023 628512345a9708205279f6e6b4ef4db7870a0304
inline js

Signed-off-by: weru <fromweru@gmail.com>
1 files deleted
1 files modified
6 ■■■■■ changed files
layouts/partials/scripts/getJsBundle.html 6 ●●●●● patch | view | raw | blame | history
layouts/partials/scripts/index.html patch | view | raw | blame | history
layouts/partials/scripts/getJsBundle.html
@@ -1,2 +1,4 @@
{{- $bundle := .scripts | resources.Concat (printf "js/%s.js" .slug) | resources.Fingerprint "sha512" }}
<script src="{{ $bundle.Permalink }}" async></script>
{{- $bundle := .scripts | resources.Concat (printf "js/%s.js" .slug) | resources.Minify | resources.Fingerprint "sha512" }}
<script>
  {{ safeJS $bundle.Content }}
</script>
layouts/partials/scripts/index.html