Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2021-10-09 08:34:08 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-10-10 12:11:43 +0300
commit64abc83fc4b70c70458c582ae2cf67fc9c67bb3f (patch)
tree42c2718ea24ce2f3e59d2b516ff1939d29ca193b /resources
parentf8d132d731cf8e27c8c17931597fd975e8a7c3cc (diff)
Allow multiple plugins in the PostCSS options map
Usage: {{ $options := dict "use" "autoprefixer postcss-color-alpha" }} {{ $style := resources.Get "main.css" | resources.PostCSS $options }} Fixes #9015
Diffstat (limited to 'resources')
-rw-r--r--resources/resource_transformers/postcss/postcss.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/resource_transformers/postcss/postcss.go b/resources/resource_transformers/postcss/postcss.go
index 5fcadd937..8104d0336 100644
--- a/resources/resource_transformers/postcss/postcss.go
+++ b/resources/resource_transformers/postcss/postcss.go
@@ -113,7 +113,8 @@ func (opts Options) toArgs() []string {
args = append(args, "--no-map")
}
if opts.Use != "" {
- args = append(args, "--use", opts.Use)
+ args = append(args, "--use")
+ args = append(args, strings.Fields(opts.Use)...)
}
if opts.Parser != "" {
args = append(args, "--parser", opts.Parser)