Skip to content
Permalink
Browse files

Spell out the npm command for installing PostCSS

Also make a special note about the need to install PostCSS locally
for Hugo Snap.
  • Loading branch information...
anthonyfok committed Aug 24, 2018
1 parent 19e900a commit 64b9ecc74701fe09172e014ff4a18b4fa820d300
Showing with 3 additions and 1 deletion.
  1. +3 −1 content/en/hugo-pipes/postcss.md
@@ -27,7 +27,9 @@ The resource will be processed using the project's or theme's own `postcss.confi
```

{{% note %}}
Hugo Pipe's PostCSS requires `postcss-cli` javascript package to be installed on the environement along with any PostCSS plugin used.
Hugo Pipe's PostCSS requires the `postcss-cli` JavaScript package to be installed in the environment (`npm install -g postcss-cli`) along with any PostCSS plugin(s) used (e.g., `npm install -g autoprefixer`).

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 %}}
### Options

0 comments on commit 64b9ecc

Please sign in to comment.
You can’t perform that action at this time.