Fix resource transformation

Fixes #426
This commit is contained in:
Regis Philibert 2021-06-17 09:21:34 -04:00
parent 6eb54ab5fd
commit 6a8f9511aa

View file

@ -41,7 +41,7 @@ css asset directory we add to aforementioned slice */}}
{{ $style = $style | resources.ToCSS $options | minify }} {{ $style = $style | resources.ToCSS $options | minify }}
{{/* We fingerprint in production for cache busting purposes */}} {{/* We fingerprint in production for cache busting purposes */}}
{{ if eq (getenv "HUGO_ENV") "production" }} {{ if eq (getenv "HUGO_ENV") "production" }}
{{ $style = . | fingerprint }} {{ $style = $style | fingerprint }}
{{ end }} {{ end }}
{{/* We're ready to set returning variable with resulting resource */}} {{/* We're ready to set returning variable with resulting resource */}}
{{ $main_style = $style }} {{ $main_style = $style }}