Skip to content

Commit e140e68

Browse files
committed
Revert "HACK: Don’t minify js until we find a real fix."
This reverts commit 470937f.
1 parent dfcf427 commit e140e68

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

www/layouts/partials/head/js.html

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{{ range .Params.JsModules }}
22
{{- with resources.Get . }}
3-
<!-- {{- if eq hugo.Environment "development" }} -->
3+
{{- if eq hugo.Environment "development" }}
44
<script src="{{ relURL .RelPermalink }}" type="module"></script>
5-
<!-- {{- else }} -->
6-
<!-- {{- with . | minify | fingerprint }} -->
7-
<!-- <script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="module"></script> -->
8-
<!-- {{- end }} -->
9-
<!-- {{- end }} -->
5+
{{- else }}
6+
{{- with . | minify | fingerprint }}
7+
<script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="module"></script>
8+
{{- end }}
9+
{{- end }}
1010
{{- end }}
1111
{{ end }}
1212

1313
{{ range .Params.JsScripts }}
1414
{{- with resources.Get . }}
15-
<!-- {{- if eq hugo.Environment "development" }} -->
15+
{{- if eq hugo.Environment "development" }}
1616
<script src="{{ relURL .RelPermalink }}" type="text/javascript"></script>
17-
<!-- {{- else }} -->
18-
<!-- {{- with . | minify | fingerprint }} -->
19-
<!-- <script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="text/javascript"></script> -->
20-
<!-- {{- end }} -->
21-
<!-- {{- end }} -->
17+
{{- else }}
18+
{{- with . | minify | fingerprint }}
19+
<script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="text/javascript"></script>
20+
{{- end }}
21+
{{- end }}
2222
{{- end }}
2323
{{ end }}

0 commit comments

Comments
 (0)