Skip to content

Commit

Permalink
Minify assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Djordje Atlialp committed Apr 15, 2019
1 parent c9915f4 commit fb32add
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
{{ $menu := resources.Get "js/menu.js" }}
{{ $prism := resources.Get "js/prism.js" }}
{{ $theme := resources.Get "js/theme.js" }}
{{ $js := slice $main $menu $prism $theme | resources.Concat "js/bundle.js" | resources.Minify }}
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
{{ $secureJS := slice $main $menu $prism $theme | resources.Concat "js/bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>

{{- if .Site.GoogleAnalytics }}
Expand Down

0 comments on commit fb32add

Please sign in to comment.