mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 23:38:53 +00:00
Add documentation for babel sourceMap (#1492)
* Document sourceMap argument on babel. * Add docs for babel sourceMap. * inputSourceMap already defaults to true inside of babel. * @davidsneighbour agree, better just not to mention it since it does default to true. It used to be a required setting. * Fix missing extenal sourceMap docs for js.Build which was also part of the PR * Missing change (missing from previous commit)
This commit is contained in:
@@ -65,6 +65,10 @@ compact [bool]
|
||||
verbose [bool]
|
||||
: Log everything
|
||||
|
||||
sourceMap [string]
|
||||
: Output `inline` or `external` sourcemap from the babel compile. External sourcemaps will be written to the target with the output file name + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
|
||||
|
||||
|
||||
### Examples
|
||||
|
||||
```go-html-template
|
||||
|
||||
@@ -97,7 +97,7 @@ format [string] {{< new-in "0.74.3" >}}
|
||||
Default is `iife`, a self-executing function, suitable for inclusion as a <script> tag.
|
||||
|
||||
sourceMap
|
||||
: Whether to generate source maps. Enum, currently only `inline` (we will improve that).
|
||||
: Whether to generate `inline` or `external` sourcemap from esbuild. External sourcemaps will be written to the target with the output file name + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
|
||||
|
||||
### Import JS code from /assets
|
||||
|
||||
|
||||
Reference in New Issue
Block a user