-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
access eleventyConfig plugin property #3214
Comments
Per the recently merged docs here: https://www.11ty.dev/docs/plugins/#creating-a-plugin, I believe the |
[meta: I replied to this logged into a sibling's GH account; I apologize for my carelessness] The options are passed in to the plugin as that link describes, and are available in the main plugin file, e.g. |
I have the same problem. Did you solve it? |
Discussed in #3193
Originally posted by btrem February 7, 2024
I have several plugins in my site setup, which are listed in the
eleventyConfig
in aplugins
array (shortened for ease of reading):One of my plugins has a
pluginConfig
that I can access viaeleventyConfig.plugins[1].options.foo
. Can I find this particular property directly? I.e., is there a way to access the plugin via it's name in the .eleventy.jsaddPlugin
directive? I triedJSON.stringify(eleventyConfig.plugins["myPlugin"])
and got undefined.The text was updated successfully, but these errors were encountered: