Document changes to template functions in v0.128.0

- New: css.TailwindCSS
- Deprecate/rename: resources.Babel => js.Babel
- Deprecate/rename: resources.PostCSS => css.PostCSS
- Deprecate/rename: resources.ToCSS => css.Sass
- Document disableWatch mount parameter
This commit is contained in:
Joe Mooring authored and Bjørn Erik Pedersen committed 2024-06-25 19:10:02 +02:00
1 parent 0990ce35b5
commit 012162e0d2
20 files changed
+680 -66

No files matched your search

+9 -2
View File
@@ -8,13 +8,20 @@ action:
related:
- functions/resources/Fingerprint
- functions/resources/Minify
- functions/resources/PostCSS
- functions/css/PostCSS
- functions/resources/PostProcess
returnType: resource.Resource
signatures: ['resources.ToCSS [OPTIONS] RESOURCE']
toc: true
expiryDate: 2025-06-24 # deprecated 2024-06-24
---
{{% deprecated-in 0.128.0 %}}
Use [css.Sass] instead.
[css.Sass]: /functions/css/sass/
{{% /deprecated-in %}}
```go-html-template
{{ with resources.Get "sass/main.scss" }}
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
@@ -76,7 +83,7 @@ includePaths
"transpiler" "dartsass"
"targetPath" "css/style.css"
"vars" site.Params.styles
"enableSourceMap" (not hugo.IsProduction)
"enableSourceMap" (not hugo.IsProduction)
"includePaths" (slice "node_modules/bootstrap/scss")
}}
{{ with resources.Get "sass/main.scss" | toCSS $opts | minify | fingerprint }}