mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00: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