Dist::Milla: overriding parameters of bundled plugins

Dist::Milla has great defaults, but sometimes you want to override a parameter of one of its bundled plugins.

When you use [@Milla] in your dist.ini, Dist::Zilla::PluginBundle::Milla gets loaded. It uses Dist::Zilla::Role::PluginBundle::Config::Slicer which uses special configuration syntax to pass portions of bundle configuration to the plugins contained in the bundle.

For example, let’s assume that you want to change the homepage value in META.json’s resources section. @Milla uses Dist::Zilla::Plugin::GithubMeta to generate that section. The plugin accepts a homepage parameter to override the value. Therefore you can override it in the Milla plugin bundle configuration as well:

    GithubMeta.homepage = http://foo.bar

Pin It on Pinterest