Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-01-22 19:07:23 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-01-23 01:43:44 +0300
commit32b86076ee1c0833b538b84e1cc9e6d79babecf2 (patch)
tree7332c7ba35372e520fe67fa011747773a1b226d5 /docs
parent241b7483ea954653512d4895ad6bacf79ee26ddc (diff)
js: Add Inject config option
Fixes #8164
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/hugo-pipes/js.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/en/hugo-pipes/js.md b/docs/content/en/hugo-pipes/js.md
index d03fc1c6d..b57497d86 100644
--- a/docs/content/en/hugo-pipes/js.md
+++ b/docs/content/en/hugo-pipes/js.md
@@ -43,6 +43,9 @@ minify [bool]
avoidTDZ {{< new-in "0.78.0" >}}
: There is/was a bug in WebKit with severe performance issue with the tracking of TDZ checks in JavaScriptCore. Enabling this flag removes the TDZ and `const` assignment checks and may improve performance of larger JS codebases until the WebKit fix is in widespread use. See https://bugs.webkit.org/show_bug.cgi?id=199866
+inject [slice] {{< new-in "0.81.0" >}}
+: This option allows you to automatically replace a global variable with an import from another file. The path names must be relative to `assets`. See https://esbuild.github.io/api/#inject
+
shims {{< new-in "0.81.0" >}}
: This option allows swapping out a component with another. A common use case is to load dependencies like React from a CDN (with _shims_) when in production, but running with the full bundled `node_modules` dependency during development: