summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-07-21 17:59:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-07-22 10:13:30 +0200
commit0256959a358bb26b983c9d9496862b0fdf387621 (patch)
tree35578577001fb8bf330cae72195251cd73ce777d /docs
parenteded9ac2a05b9a7244c25c70ca8f761b69b33385 (diff)
resources/js: Add option for setting bundle format
Fixes #7503
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/hugo-pipes/js.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/content/en/hugo-pipes/js.md b/docs/content/en/hugo-pipes/js.md
index f361adc45..465854f3a 100644
--- a/docs/content/en/hugo-pipes/js.md
+++ b/docs/content/en/hugo-pipes/js.md
@@ -45,6 +45,11 @@ defines [map]
{{ $defines := dict "process.env.NODE_ENV" `"development"` }}
```
+format [string] {{< new-in "0.75.0" >}}
+: The output format.
+ One of: `iife`, `cjs`, `esm`.
+ Default is `iife`, a self-executing function, suitable for inclusion as a <script> tag.
+
### Examples
```go-html-template