Skip to content

Commit

Permalink
HACK: Don’t minify js until we find a real fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuclear-Squid committed Nov 25, 2024
1 parent 731b210 commit 470937f
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 470937f

Please sign in to comment.