Passing in plugin options
RobLoach opened this issue · comments
Rob Loach commented
Is there a way to have the loader pass options into the Metalsmith plugins?
Gerald Yeo commented
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...
}));