There was an error while loading. Please reload this page.
1 parent bf7ff91 commit 5862a0fCopy full SHA for 5862a0f
exampleSite/layouts/index.html
@@ -30,7 +30,11 @@
30
{{ $params := dict }}
31
{{ $sourceMap := cond hugo.IsProduction "" "inline" }}
32
{{ $opts := dict "sourceMap" $sourceMap "minify" hugo.IsProduction "target" "es2018" "params" $params }}
33
- {{ $js = $js | js.Build $opts }} <script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end }} defer></script>
+ {{ $js = $js | js.Build $opts }}
34
+ {{ if hugo.IsProduction }}
35
+ {{ $js = $js | fingerprint }}
36
+ {{ end }}
37
+ <script src="{{ $js.RelPermalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end }} defer></script>
38
</head>
39
<body>
40
<div class="container mt-5">
0 commit comments