summaryrefslogtreecommitdiffstats
path: root/docs/content/en/hugo-pipes/scss-sass.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/hugo-pipes/scss-sass.md')
-rwxr-xr-xdocs/content/en/hugo-pipes/scss-sass.md17
1 files changed, 7 insertions, 10 deletions
diff --git a/docs/content/en/hugo-pipes/scss-sass.md b/docs/content/en/hugo-pipes/scss-sass.md
index c4a0a5520..ad4a66b11 100755
--- a/docs/content/en/hugo-pipes/scss-sass.md
+++ b/docs/content/en/hugo-pipes/scss-sass.md
@@ -1,9 +1,8 @@
---
-title: SASS / SCSS
-description: Hugo Pipes allows the processing of SASS and SCSS files.
+title: Sass / SCSS
+description: Hugo Pipes allows the processing of Sass and SCSS files.
date: 2018-07-14
publishdate: 2018-07-14
-lastmod: 2018-07-14
categories: [asset management]
keywords: []
menu:
@@ -12,11 +11,9 @@ menu:
weight: 30
weight: 02
sections_weight: 02
-draft: false
---
-
-Any SASS or SCSS file can be transformed into a CSS file using `resources.ToCSS` which takes two arguments, the resource object and a map of options listed below.
+Any Sass or SCSS file can be transformed into a CSS file using `resources.ToCSS` which takes two arguments, the resource object and a map of options listed below.
```go-html-template
{{ $sass := resources.Get "sass/main.scss" }}
@@ -25,9 +22,9 @@ Any SASS or SCSS file can be transformed into a CSS file using `resources.ToCSS`
### Options
-transpiler [string] {{< new-in "0.80.0" >}}
+transpiler [string]
-: The `transpiler` to use, valid values are `libsass` (default) and `dartsass`. Note that the Embedded Dart Sass project is still in beta. We will try to improve the installation process when it has stable releases, but if you want to use Hugo with Dart Sass you need to download a release binary from [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) (Hugo after 0.81.0 requires beta 6 or newer) and make sure it's in your PC's `$PATH` (or `%PATH%` on Windows).
+: The `transpiler` to use, valid values are `libsass` (default) and `dartsass`. If you want to use Hugo with Dart Sass you need to download a release binary from [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) and make sure it's in your PC's `$PATH` (or `%PATH%` on Windows).
targetPath [string]
: If not set, the resource's target path will be the asset file original path with its extension replaced by `.css`.
@@ -42,7 +39,7 @@ enableSourceMap [bool]
: When enabled, a source map will be generated.
includePaths [string slice]
-: Additional SCSS/SASS include paths. Paths must be relative to the project directory.
+: Additional SCSS/Sass include paths. Paths must be relative to the project directory.
```go-html-template
{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "node_modules/myscss")) }}
@@ -50,5 +47,5 @@ includePaths [string slice]
```
{{% note %}}
-Setting `outputStyle` to `compressed` will handle SASS/SCSS files minification better than the more generic [`resources.Minify`]({{< ref "minification">}}).
+Setting `outputStyle` to `compressed` will handle Sass/SCSS files minification better than the more generic [`resources.Minify`]({{< ref "minification">}}).
{{% /note %}}