mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 16:34:39 -04:00
Update scss-sass.md
This commit is contained in:
parent
cbfaa67043
commit
5031301869
@ -45,7 +45,7 @@ includePaths [string slice]
|
||||
: Additional SCSS/SASS include paths. Paths must be relative to the project directory.
|
||||
|
||||
```go-html-template
|
||||
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true "includePaths" (slice "node_modules/myscss")) }}
|
||||
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" hugo.IsProduction "includePaths" (slice "node_modules/myscss")) }}
|
||||
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user