From fb32addcaf60bbfe04fd7423af05f3f3c12e8c19 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Mon, 15 Apr 2019 23:14:06 +0200 Subject: [PATCH] Minify assets --- layouts/partials/javascript.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/partials/javascript.html b/layouts/partials/javascript.html index 1491bc3..dca8df4 100644 --- a/layouts/partials/javascript.html +++ b/layouts/partials/javascript.html @@ -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" }} {{- if .Site.GoogleAnalytics }}