You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of my plugins has a pluginConfig that I can access via eleventyConfig.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.js addPlugin directive? I tried JSON.stringify(eleventyConfig.plugins["myPlugin"]) and got undefined.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.Beta Was this translation helpful? Give feedback.
All reactions