Auto-detect threejs

This commit is contained in:
Joshua Goins 2025-01-03 13:47:42 -05:00
parent a82da00d14
commit b2697f13bb
2 changed files with 1 additions and 2 deletions

View file

@ -8,7 +8,6 @@ tags:
- GLSL - GLSL
series: series:
- Graphics Dump - Graphics Dump
threejs: true
math: true math: true
--- ---

View file

@ -30,7 +30,7 @@
{{ partial "comments" . }} {{ partial "comments" . }}
{{ end }} {{ end }}
{{ if .Params.threejs }} {{ if .HasShortcode "three-scene" }}
{{ $imagesloaded := resources.Get "js/three.js" }} {{ $imagesloaded := resources.Get "js/three.js" }}
{{ if hugo.IsProduction }} {{ if hugo.IsProduction }}
{{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }} {{ $imagesloaded = $imagesloaded | minify | fingerprint | resources.PostProcess }}