dict "env" hugo.Environment) */ -}}

{{- $paramsDefault := (dict "env" hugo.Environment) -}}
{{- $params := "" -}}
{{- with .params -}}
  {{- $params = merge $paramsDefault . -}}
{{- else -}}
  {{- $params = $paramsDefault -}}
{{- end -}}

{{- /* standard production configuration for es build */ -}}
{{- $jsConfig := (dict "target" "es2015" "minify" "true" "params" $params) }}
{{- $js := $resource -}}

{{- /* is .babelEs6 is set to true - use babel to lower to es6 */ -}}
{{- if $babel -}}
  {{- $babelConfig 