Skip to content

Commit

Permalink
Revert "HACK: Don’t minify js until we find a real fix."
Browse files Browse the repository at this point in the history
This reverts commit 470937f.
  • Loading branch information
Nuclear-Squid committed Nov 26, 2024
1 parent dfcf427 commit e140e68
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions www/layouts/partials/head/js.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{{ range .Params.JsModules }}
{{- with resources.Get . }}
<!-- {{- if eq hugo.Environment "development" }} -->
{{- if eq hugo.Environment "development" }}
<script src="{{ relURL .RelPermalink }}" type="module"></script>
<!-- {{- else }} -->
<!-- {{- with . | minify | fingerprint }} -->
<!-- <script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="module"></script> -->
<!-- {{- end }} -->
<!-- {{- end }} -->
{{- else }}
{{- with . | minify | fingerprint }}
<script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="module"></script>
{{- end }}
{{- end }}
{{- end }}
{{ end }}

{{ range .Params.JsScripts }}
{{- with resources.Get . }}
<!-- {{- if eq hugo.Environment "development" }} -->
{{- if eq hugo.Environment "development" }}
<script src="{{ relURL .RelPermalink }}" type="text/javascript"></script>
<!-- {{- else }} -->
<!-- {{- with . | minify | fingerprint }} -->
<!-- <script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="text/javascript"></script> -->
<!-- {{- end }} -->
<!-- {{- end }} -->
{{- else }}
{{- with . | minify | fingerprint }}
<script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="text/javascript"></script>
{{- end }}
{{- end }}
{{- end }}
{{ end }}

0 comments on commit e140e68

Please sign in to comment.