Hey
First, thanks for the great plugin!
Second, just wondering why the plugin is so strict about requiring the collection to be present in the build. If I have a null collection (i.e. nothing in my build matches the pattern set on metalsmith-collections) then the plugin throws a TypeError (L37).
I back most of my Metalsmith sites with Contentful, so I'm not in complete control of which items will be in the build. If an editor removes all items from a particular Content Type then it's possible that the collection will be empty.
Could default behaviour just be skipping over missing/empty collections?
Cheers
Sam
Hey
First, thanks for the great plugin!
Second, just wondering why the plugin is so strict about requiring the collection to be present in the build. If I have a null collection (i.e. nothing in my build matches the pattern set on
metalsmith-collections) then the plugin throws a TypeError (L37).I back most of my Metalsmith sites with Contentful, so I'm not in complete control of which items will be in the build. If an editor removes all items from a particular Content Type then it's possible that the collection will be empty.
Could default behaviour just be skipping over missing/empty collections?
Cheers
Sam