diff options
author | WingLim <643089849@qq.com> | 2022-05-30 16:09:24 +0300 |
---|---|---|
committer | WingLim <643089849@qq.com> | 2022-05-30 16:09:24 +0300 |
commit | cb7fe3ca0295954975011e2c050c9c09c9e68375 (patch) | |
tree | 1a1eab59ec925f9891579ece59f3b91322e15943 | |
parent | d2cb34faf45563d2a90d5da1e95c578699825f4f (diff) |
feat: minify scriptsfeat/fuse-package
-rw-r--r-- | layouts/_default/archives.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer/footer.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index d9e0cda..9870987 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -46,7 +46,7 @@ </section> {{- $opts := dict "minify" hugo.IsProduction -}} -{{ $search := resources.Get "ts/search.ts" | js.Build $opts | fingerprint }} +{{ $search := resources.Get "ts/search.ts" | js.Build $opts | fingerprint | minify }} <script async src="{{ $search.RelPermalink }}"></script> {{ end }} diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 7161f62..d19832e 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -34,7 +34,7 @@ );"></script> {{- end }} {{- $opts := dict "minify" hugo.IsProduction -}} - {{ $features := resources.Get "ts/features.ts" | js.Build $opts | fingerprint }} + {{ $features := resources.Get "ts/features.ts" | js.Build $opts | fingerprint | minify }} <script defer src="{{ $features.RelPermalink }}" data-enable-footnotes="{{ .Site.Params.enableFootnotes | default true }}" ></script> |