{{- $opts := dict "minify" hugo.IsProduction -}}
{{- $replay := resources.Get "js/comment.min.js" | js.Build $opts -}}
{{- $db := resources.Get "ts/db.ts" | js.Build $opts -}}
{{- $app := resources.Get "ts/app.ts" | js.Build $opts -}}
{{- $comment := resources.Get "ts/comment.ts" | js.Build $opts -}}
{{ $ts := slice $replay $db $app $comment | resources.Concat "ts/bundle.js" }}
{{ range .Site.Params.customJS }}
{{ if ( or ( hasPrefix . "http://" ) ( hasPrefix . "https://" ) ) }}
{{ else }}
{{ end }}
{{ end }}