summaryrefslogtreecommitdiffstats
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/scripts.html2
-rw-r--r--layouts/partials/seo/ga.html2
2 files changed, 2 insertions, 2 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>
diff --git a/layouts/partials/seo/ga.html b/layouts/partials/seo/ga.html
index a9703b3..5fcde75 100644
--- a/layouts/partials/seo/ga.html
+++ b/layouts/partials/seo/ga.html
@@ -6,7 +6,7 @@
{{- $gaScript = $gaScript | append (resources.Get "js/ga.js") -}}
{{- $gaScript = $gaScript | resources.Concat "js/analytics-bundle.js" -}}
- {{- $gaScript = $gaScript | js.Build (dict "format" "iife" "minify" true "params" $gaParams) -}}
+ {{- $gaScript = $gaScript | js.Build (dict "format" "iife" "target" "es2015" "minify" true "params" $gaParams) -}}
{{- if site.Params.assets.disable_fingerprinting }}
<script src="{{ $gaScript.RelPermalink }}"></script>