Skip to content

Commit

Permalink
Spell out the npm command for installing PostCSS
Browse files Browse the repository at this point in the history
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 64b9ecc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/en/hugo-pipes/postcss.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 64b9ecc

Please sign in to comment.