mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 19:04:45 -04:00
Update scss-sass.md
This commit is contained in:
parent
5031301869
commit
30f32a6243
@ -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" hugo.IsProduction "includePaths" (slice "node_modules/myscss")) }}
|
||||
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" (not 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