diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-09-13 20:34:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-09-13 20:34:24 +0200 |
commit | af23cdca9c9c230ffbffbab96f9600a78c76b75f (patch) | |
tree | 295143582c22fbac26978fc12f027ca497493fb8 /docs/content/en/hugo-pipes | |
parent | ab5ce59894520a796ca658ef0385c65c2fa45f99 (diff) | |
parent | 90ad8045056167004d27857a95542936657b8a16 (diff) | |
download | hugo-af23cdca9c9c230ffbffbab96f9600a78c76b75f.tar.gz hugo-af23cdca9c9c230ffbffbab96f9600a78c76b75f.zip |
Merge commit '90ad8045056167004d27857a95542936657b8a16'
Diffstat (limited to 'docs/content/en/hugo-pipes')
-rwxr-xr-x | docs/content/en/hugo-pipes/babel.md | 4 | ||||
-rw-r--r-- | docs/content/en/hugo-pipes/js.md | 6 | ||||
-rwxr-xr-x | docs/content/en/hugo-pipes/postcss.md | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/docs/content/en/hugo-pipes/babel.md b/docs/content/en/hugo-pipes/babel.md index 76a1d441d..7cf931f65 100755 --- a/docs/content/en/hugo-pipes/babel.md +++ b/docs/content/en/hugo-pipes/babel.md @@ -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 diff --git a/docs/content/en/hugo-pipes/js.md b/docs/content/en/hugo-pipes/js.md index 63bd8bdd9..ff29ca958 100644 --- a/docs/content/en/hugo-pipes/js.md +++ b/docs/content/en/hugo-pipes/js.md @@ -70,6 +70,10 @@ With the above, these imports should work in both scenarios: import * as React from 'react' import * as ReactDOM from 'react-dom'; ``` +sourceMap [string, bool] {{< new-in "0.75.0" >}} +: Let `js.Build` output sourceMap. Current only inline is supported. true defaults to inline. + One of: '`inline`, `external` + Default is "" (disabled) target [string] : The language target. @@ -93,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 diff --git a/docs/content/en/hugo-pipes/postcss.md b/docs/content/en/hugo-pipes/postcss.md index 154f97f0b..46833e0a4 100755 --- a/docs/content/en/hugo-pipes/postcss.md +++ b/docs/content/en/hugo-pipes/postcss.md @@ -33,7 +33,7 @@ If you are using the Hugo Snap package, PostCSS and plugin(s) need to be install ### Options config [string] -: Path to the PostCSS configuration file +: Set a custom directory to look for a config file noMap [bool] : Default is `false`. Disable the default inline sourcemaps @@ -63,7 +63,7 @@ syntax [string] : Custom postcss syntax ```go-html-template -{{ $options := dict "config" "customPostCSS.js" "noMap" true }} +{{ $options := dict "config" "/path/to/custom-config-directory" "noMap" true }} {{ $style := resources.Get "css/main.css" | resources.PostCSS $options }} {{ $options := dict "use" "autoprefixer postcss-color-alpha" }} |