The documentation states:
noMap [bool]
Default istrue
. Disable the default inline sourcemaps
But the inline sourcemap is still generated. If I set “noMap” to true, the inline sourcemap is still generated. However, if I set “no-map” to true then the inline sourcemap is not generated (as desired).
This generates an inline sourcemap (FAIL):
{{- $optionsToCSS := (dict "outputStyle" "compressed") -}}
{{- $optionsPostCSS := (dict "use" "autoprefixer") -}}
{{- $css := resources.Get "css/main.scss" | resources.ToCSS $optionsToCSS | resources.PostCSS $optionsPostCSS -}}
This also generates an inline sourcemap (FAIL):
{{- $optionsToCSS := (dict "outputStyle" "compressed") -}}
{{- $optionsPostCSS := (dict "noMap" true "use" "autoprefixer") -}}
{{- $css := resources.Get "css/main.scss" | resources.ToCSS $optionsToCSS | resources.PostCSS $optionsPostCSS -}}
This does not generate an inline source map (PASS):
{{- $optionsToCSS := (dict "outputStyle" "compressed") -}}
{{- $optionsPostCSS := (dict "no-map" true "use" "autoprefixer") -}}
{{- $css := resources.Get "css/main.scss" | resources.ToCSS $optionsToCSS | resources.PostCSS $optionsPostCSS -}}
Environment:
- Ubuntu 18.04.2 LTS
- Hugo Static Site Generator v0.54.0/extended linux/amd64 BuildDate: 2019-02-01T13:31:26Z (installed from snap)
Per the documentation, because I installed the Hugo snap package, I installed postcss-cli and autoprefixer in the Hugo site directory with:
$ npm install postcss-cli
$ npm install autoprefixer
Is the documentation incorrect? Is this a bug? Or am I doing something wrong?