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/shortcodes/form-search.html | |
| parent | 9ff4c970c0707dec548af518b8a75192d81a3b00 (diff) | |
| download | gohugo-theme-ed-d5ef25c62df134855d48322a633982577dd6d5dd.tar.gz | |
Set the language target to `es2015`
Diffstat (limited to 'layouts/shortcodes/form-search.html')
| -rw-r--r-- | layouts/shortcodes/form-search.html | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/layouts/shortcodes/form-search.html b/layouts/shortcodes/form-search.html index a917aec..9276030 100644 --- a/layouts/shortcodes/form-search.html +++ b/layouts/shortcodes/form-search.html @@ -76,11 +76,7 @@ {{- $siteSearch = $siteSearch | append (resources.Get "js/search.js") -}} {{- $siteSearch = $siteSearch | resources.Concat "js/search-bundle.js" -}} -{{- if $isProduction -}} - {{- $siteSearch = $siteSearch | js.Build (dict "format" "iife" "params" $searchParams) | minify -}} -{{ else }} - {{- $siteSearch = $siteSearch | js.Build (dict "format" "iife" "sourceMap" "inline" "params" $searchParams) -}} -{{- end -}} +{{- $siteSearch = $siteSearch | js.Build (dict "format" "iife" "minify" $isProduction "target" "es2015" "params" $searchParams) -}} {{- if or (site.Params.assets.disable_fingerprinting) (not $isProduction) }} <script src="{{ $siteSearch.RelPermalink }}"></script> |
