Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of relative paths for levels tech #10

Closed
blond opened this issue Jul 27, 2014 · 0 comments · Fixed by #31
Closed

Support of relative paths for levels tech #10

blond opened this issue Jul 27, 2014 · 0 comments · Fixed by #31
Assignees
Milestone

Comments

@blond
Copy link
Member

blond commented Jul 27, 2014

Absolute paths:

nodeConfig.addTech([require('enb-bem/techs/levels'), { 
    levels: getLevels(config) 
}]);

function getLevels(config) {
    return [
        'common.blocks',
        'desktop.blocks'
    ].map(function (level) { 
        return config.resolvePath(level);
    });
}

Relative paths:

nodeConfig.addTech([require('enb-bem/techs/levels'), { 
    levels: ['common.blocks', 'desktop.blocks']
}]);
@blond blond added this to the 0.1 milestone Jul 27, 2014
@blond blond self-assigned this Jul 27, 2014
@blond blond modified the milestones: 0.1, 0.2 Jul 27, 2014
@blond blond closed this as completed in #31 Aug 25, 2014
@blond blond modified the milestones: 0.2, 0.1 Aug 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant