🎨 Optimize resource fingerprint replace with unixtime for CDN.

This commit is contained in:
elkan1788
2024-11-24 16:33:35 +08:00
parent fdfcadadcc
commit ee4a22d88a
4 changed files with 20 additions and 13 deletions

View File

@@ -113,6 +113,7 @@
{{ $nextjs = $nextjs | resources.Concat "js/main.js"}}
{{ if hugo.IsProduction }}
{{ $nextjs = $nextjs | minify | fingerprint }}
{{ $nextjs = $nextjs | minify }}
{{ end }}
<script type="text/javascript" src="{{ $nextjs.RelPermalink }}" defer></script>
{{ $unixSrc := partial "_funs/add_unix_param.html" $nextjs.RelPermalink }}
<script type="text/javascript" src="{{ $unixSrc }}" defer></script>