diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-30 20:40:46 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-30 20:47:24 +0200 |
| commit | d5ef25c62df134855d48322a633982577dd6d5dd (patch) | |
| tree | 704439abf7f7870c61866912fa29fe91bc8f1398 /layouts/partials/scripts.html | |
| parent | 9ff4c970c0707dec548af518b8a75192d81a3b00 (diff) | |
| download | gohugo-theme-ed-d5ef25c62df134855d48322a633982577dd6d5dd.tar.gz | |
Set the language target to `es2015`
Diffstat (limited to 'layouts/partials/scripts.html')
| -rw-r--r-- | layouts/partials/scripts.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index a42e492..2d8e543 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -4,7 +4,7 @@ {{- $scripts = $scripts | append (resources.Get "js/ed.js") -}} {{- $scripts = $scripts | resources.Concat "js/common.js" -}} -{{- $scripts = $scripts | js.Build (dict "format" "iife" "minify" $isProduction) -}} +{{- $scripts = $scripts | js.Build (dict "format" "iife" "target" "es2015" "minify" $isProduction) -}} {{- if or (site.Params.assets.disable_fingerprinting) (not $isProduction) }} <script src="{{ $scripts.RelPermalink }}"></script> |
