yeojz / metalsmith-loader

Loads Metalsmith as well as multiple metalsmith plugins using globbing patterns
MIT License
3 stars 0 forks source link

Passing in plugin options #1

Open RobLoach opened 8 years ago

RobLoach commented 8 years ago

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

yeojz commented 8 years ago

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...
}));