mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
docs: Update the description of PostCSS config
This commit is contained in:
1 parent
2ffe539e3a
commit
879fc39839
1 file changed
+2
-2
@@ -33,7 +33,7 @@ If you are using the Hugo Snap package, PostCSS and plugin(s) need to be install
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
config [string]
|
config [string]
|
||||||
: Path to the PostCSS configuration file
|
: Set a custom directory to look for a config file
|
||||||
|
|
||||||
noMap [bool]
|
noMap [bool]
|
||||||
: Default is `false`. Disable the default inline sourcemaps
|
: Default is `false`. Disable the default inline sourcemaps
|
||||||
@@ -63,7 +63,7 @@ syntax [string]
|
|||||||
: Custom postcss syntax
|
: Custom postcss syntax
|
||||||
|
|
||||||
```go-html-template
|
```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 }}
|
{{ $style := resources.Get "css/main.css" | resources.PostCSS $options }}
|
||||||
|
|
||||||
{{ $options := dict "use" "autoprefixer postcss-color-alpha" }}
|
{{ $options := dict "use" "autoprefixer postcss-color-alpha" }}
|
||||||
|
|||||||
Reference in new issue
Block a user