Skip to content

Don't overwrite config if createConfigurator was called several times #39

@tadatuta

Description

@tadatuta

createConfigurator() when called in a loop is overwritten now:

platforms.forEach(function(platform) {
    config.module('enb-bem-docs')
        .createConfigurator('docs', 'examples')
        .configure({
            levels: levels,
            destPath: path.join(destFolder, lib, platform + '.docs'),
            exampleSets: [path.join(destFolder, lib, platform + '.examples')],
            langs: config.getLanguages(),
            jsdoc: { suffixes: ['vanilla.js', 'browser.js', 'js'] }
        });
});

It would be great to add new declarations (or at least log warns to console) in such occasions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions