From d301add5e42f1f3ce8021382a36c4f3ad571fcb9 Mon Sep 17 00:00:00 2001 From: Razon Yang Date: Mon, 18 Jul 2022 01:44:53 +0800 Subject: [PATCH] docs: Update the description of PostCSS config --- docs/content/en/hugo-pipes/postcss.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/en/hugo-pipes/postcss.md b/docs/content/en/hugo-pipes/postcss.md index 154f97f0bad..46833e0a40b 100755 --- a/docs/content/en/hugo-pipes/postcss.md +++ b/docs/content/en/hugo-pipes/postcss.md @@ -33,7 +33,7 @@ If you are using the Hugo Snap package, PostCSS and plugin(s) need to be install ### Options config [string] -: Path to the PostCSS configuration file +: Set a custom directory to look for a config file noMap [bool] : Default is `false`. Disable the default inline sourcemaps @@ -63,7 +63,7 @@ syntax [string] : Custom postcss syntax ```go-html-template -{{ $options := dict "config" "customPostCSS.js" "noMap" true }} +{{ $options := dict "config" "/path/to/custom-config-directory" "noMap" true }} {{ $style := resources.Get "css/main.css" | resources.PostCSS $options }} {{ $options := dict "use" "autoprefixer postcss-color-alpha" }}