diff --git a/themes/rhds/layouts/partials/head/css.html b/themes/rhds/layouts/partials/head/css.html
index 246103987..a0637c5e4 100644
--- a/themes/rhds/layouts/partials/head/css.html
+++ b/themes/rhds/layouts/partials/head/css.html
@@ -2,7 +2,7 @@
{{- with resources.Get "css/main.css" }}
- {{- if eq hugo.Environment "development" }}
+ {{- if not hugo.IsProduction "development" }}
{{- else }}
{{- with . | minify | fingerprint }}