Skip to content

Commit

Permalink
feat(layout): minify script (#258)
Browse files Browse the repository at this point in the history
Patch taken from sdvcrx@60633a0
  • Loading branch information
laroche authored May 6, 2020
1 parent 18fa0b5 commit 50aa3f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{{- end }}
{{ $even := resources.Get "js/even.js" }}
{{ $main := resources.Get "js/main.js" }}
{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }}
{{ $js := slice $even $main | resources.Concat "js/main.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $js.RelPermalink }}"></script>

{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
Expand Down

0 comments on commit 50aa3f8

Please sign in to comment.