summaryrefslogtreecommitdiffstats
path: root/docs/content/en/hugo-pipes/postcss.md
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-08-09 15:17:43 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-08-09 15:17:43 +0200
commite99eba39e7f9f9fed454a7671635052600685cea (patch)
tree43463de3a5a9b767358d6d3e8fc7711960947c17 /docs/content/en/hugo-pipes/postcss.md
parentdbff48e6c381eca4329f468790ac7dc4a0e6a044 (diff)
parenta6e635ca7d905d9ec3ffd708db2694f680b03aae (diff)
Diffstat (limited to 'docs/content/en/hugo-pipes/postcss.md')
-rwxr-xr-xdocs/content/en/hugo-pipes/postcss.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/en/hugo-pipes/postcss.md b/docs/content/en/hugo-pipes/postcss.md
index 148b30a7e..8ca983f7e 100755
--- a/docs/content/en/hugo-pipes/postcss.md
+++ b/docs/content/en/hugo-pipes/postcss.md
@@ -12,7 +12,7 @@ toc: true
action:
aliases: [postCSS]
returnType: resource.Resource
- signatures: ['resources.PostCSS [OPTIONS] RESOURCE']
+ signatures: ['css.PostCSS [OPTIONS] RESOURCE']
---
## Setup
@@ -50,7 +50,7 @@ Step 4
: Place your CSS file within the `assets` directory.
Step 5
-: Capture the CSS file as a resource and pipe it through `resources.PostCSS` (alias `postCSS`):
+: Capture the CSS file as a resource and pipe it through `css.PostCSS` (alias `postCSS`):
{{< code file=layouts/partials/css.html >}}
{{ with resources.Get "css/main.css" | postCSS }}
@@ -68,7 +68,7 @@ If starting with a Sass file within the `assets` directory:
## Options
-The `resources.PostCSS` method takes an optional map of options.
+The `css.PostCSS` method takes an optional map of options.
config
: (`string`) The directory that contains the PostCSS configuration file. Default is the root of the project directory.
@@ -82,8 +82,8 @@ URL imports (e.g. `@import url('https://fonts.googleapis.com/css?family=Open+San
Note that this import routine does not care about the CSS spec, so you can have @import anywhere in the file.
Hugo will look for imports relative to the module mount and will respect theme overrides.
-skipInlineImportsNotFound {{< new-in 0.99.0 >}}
-: (`bool`) Default is `false`. Before Hugo 0.99.0 when `inlineImports` was enabled and we failed to resolve an import, we logged it as a warning. We now fail the build. If you have regular CSS imports in your CSS that you want to preserve, you can either use imports with URL or media queries (Hugo does not try to resolve those) or set `skipInlineImportsNotFound` to true.
+skipInlineImportsNotFound
+: (`bool`) Default is `false`. If you have regular CSS imports in your CSS that you want to preserve, you can either use imports with URL or media queries (Hugo does not try to resolve those) or set `skipInlineImportsNotFound` to true.
{{< code file=layouts/partials/css.html >}}
{{ $opts := dict "config" "config-directory" "noMap" true }}