yeojz / metalsmith-loader

Loads Metalsmith as well as multiple metalsmith plugins using globbing patterns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passing in plugin options

RobLoach opened this issue · comments

Is there a way to have the loader pass options into the Metalsmith plugins?

The loader preloads the plugins, but still have to call the individual metalsmith plugins.
You can pass the options then...

require('metalsmith-loader')({global: true);

Metalsmith(__dirname).use(collections({
  ...plugin options...
}));