Last Updated: February 25, 2016
·
617
· colinkeith

Skipping some plugins in a Dist::Zilla Plugin Bundle

When using Plugin Bundles in Dist::Zilla you may want to skip loading some modules. This may be because you don't need that Plugin or because you want to use an alternative.

To skip a particular plugin in a plugin bundle you need to use a special plugin bundle called @Filter. This acts as a wrapper which loads the bundle that you specify but then filters out the plugin(s) that you specify.

For example, we want a static LICENSE file and not have it generated by Dist::Zilla:

dist.ini example for @Filter

name = your-module-name
author = your name <you@example.com>
license = Artistic_2_0
version = 0.03

[Prereqs]
My::Module = 0

[@Filter]
-bundle = @Basic
-remove = License