Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Question: how to know the order for plugins #195
Plugins basically just make some changes to the virtual directory of files, then pass it on to the next plugin. The plugins are applied in-order from first to last. So for
Metalsmith is like a pipeline. It works sequentially through the plugins from the first to the last. Each plugin can change the state of the metadata, frontmatter, filename or the file contents. So, if one plugin relies on another, the dependency should come first.
Something to keep in mind: You could have a plugin in your pipeline multiple times with different parameters if needed.