mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
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
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
f8d132d731
commit
64abc83fc4
@@ -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)
|
||||
|
Reference in New Issue
Block a user