summaryrefslogtreecommitdiffstats
path: root/docs/content/en/hugo-pipes
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-12-20 11:04:41 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-12-20 11:04:41 +0100
commit9a215d6950e6705f9109497e9f38cc3844172612 (patch)
treef04e00c7c59f77214ee0c90ab95d5fcab40c25fa /docs/content/en/hugo-pipes
parenteda1e720cd2434f97d7d931a7ff55447375e8d9a (diff)
parent41bc6f702aa54200530efbf4267e5c823df3028d (diff)
Diffstat (limited to 'docs/content/en/hugo-pipes')
-rwxr-xr-xdocs/content/en/hugo-pipes/postcss.md11
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/content/en/hugo-pipes/postcss.md b/docs/content/en/hugo-pipes/postcss.md
index b87dc4595..caf575c17 100755
--- a/docs/content/en/hugo-pipes/postcss.md
+++ b/docs/content/en/hugo-pipes/postcss.md
@@ -1,8 +1,6 @@
---
title: PostCSS
description: Hugo Pipes can process CSS files with PostCSS.
-date: 2018-07-14
-publishdate: 2018-07-14
categories: [asset management]
keywords: []
menu:
@@ -10,7 +8,6 @@ menu:
parent: "pipes"
weight: 40
weight: 40
-sections_weight: 40
---
Any asset file can be processed using `resources.PostCSS` which takes for argument the resource object and a slice of options listed below.
@@ -22,11 +19,11 @@ The resource will be processed using the project's or theme's own `postcss.confi
{{ $style := $css | resources.PostCSS }}
```
-{{% note %}}
-Hugo Pipe's PostCSS requires the `postcss-cli` JavaScript package to be installed in the environment (`npm install -g postcss postcss-cli`) along with any PostCSS plugin(s) used (e.g., `npm install -g autoprefixer`).
+You must install the required Node.js packages to use the PostCSS feature. For example, to use the `autoprefixer` package, run these commands from the root of your project:
-If you are using the Hugo Snap package, PostCSS and plugin(s) need to be installed locally within your Hugo site directory, e.g., `npm install postcss-cli` without the `-g` flag.
-{{% /note %}}
+```text
+npm install postcss postcss-cli autoprefixer
+```
### Options