Skip to content

Commit

Permalink
Fixed minify and fingerprint (#48)
Browse files Browse the repository at this point in the history
Before minify and fingerprint was not called resulting in the stylesheet
been css/styles.css, it was not minified, not compressed, and not
fingerprinted.
  • Loading branch information
fa11enangel authored Jun 28, 2023
1 parent 49fa590 commit 1e7074f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/css.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{{- if .Site.IsServer }}
{{ $styles = $styles | resources.ExecuteAsTemplate (printf "css/styles.dev.%v.css" now.UnixMilli) .}}
{{ else }}
{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}}
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
{{ end -}}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">

0 comments on commit 1e7074f

Please sign in to comment.