aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-24 11:35:59 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-24 12:42:56 +0200
commitdd67922013db7cee28388c29885f9d9058512bec (patch)
tree1cb6f6cb0ef9432a6182b70580cacc75c934b2df
parent9a235d0afca6125f7cf222ae0d66a5fe91ae8694 (diff)
downloadhugo-dd67922013db7cee28388c29885f9d9058512bec.tar.gz
hugo-dd67922013db7cee28388c29885f9d9058512bec.zip
minifiers: Make sure JS.Version always has a value
Fixes #11012
-rw-r--r--minifiers/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/minifiers/config.go b/minifiers/config.go
index 437a72e9d..58271362d 100644
--- a/minifiers/config.go
+++ b/minifiers/config.go
@@ -40,7 +40,9 @@ var defaultTdewolffConfig = TdewolffConfig{
Precision: 0,
KeepCSS2: true,
},
- JS: js.Minifier{},
+ JS: js.Minifier{
+ Version: 2022,
+ },
JSON: json.Minifier{},
SVG: svg.Minifier{
KeepComments: false,