-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to specify multiple plugins in the PostCSS options map #9015
Labels
Comments
jmooring
added a commit
to jmooring/hugo
that referenced
this issue
Oct 9, 2021
Usage: {{ $options := dict "use" "autoprefixer postcss-color-alpha" }} {{ $style := resources.Get "main.css" | resources.PostCSS $options }} Fixes gohugoio#9015
jmooring
added a commit
to jmooring/hugo
that referenced
this issue
Oct 9, 2021
Usage: {{ $options := dict "use" "autoprefixer postcss-color-alpha" }} {{ $style := resources.Get "main.css" | resources.PostCSS $options }} Fixes gohugoio#9015
bep
pushed a commit
that referenced
this issue
Oct 10, 2021
Usage: {{ $options := dict "use" "autoprefixer postcss-color-alpha" }} {{ $style := resources.Get "main.css" | resources.PostCSS $options }} Fixes #9015
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Our PostCSS options documentation states:
Currently you can only specify a single plugin:
use
element of the options map will not accept a slice of plugins; it expects a stringFor example, neither of these work:
You can work around this by (a) creating a postcss configuration file, or (b) creating a postcss object within the project's package.json file.
But for simple setups, with just a few plugins using default plugin options, specifying the plugins inline is simpler.
Ref: https://discourse.gohugo.io/t/how-to-list-postcss-plugins-to-use/31293
The text was updated successfully, but these errors were encountered: