Skip to content

Instantly share code, notes, and snippets.

@maxpoletaev
Created March 2, 2014 21:28
Show Gist options
  • Save maxpoletaev/9314252 to your computer and use it in GitHub Desktop.
Save maxpoletaev/9314252 to your computer and use it in GitHub Desktop.
module.exports = function(config) {
config.node('pages/index', function(nodeConfig) {
nodeConfig.addTechs([
[ require('enb/techs/file-provider'), { target: '?.bemdecl.js' } ],
[ require('enb/techs/file-provider'), { target: '?.bemjson.js' } ],
[ require('enb/techs/levels'), { levels: getLevels(config) } ],
require('enb/techs/html-from-bemjson'),
require('enb-stylus/techs/css-stylus-with-autoprefixer'),
require('enb/techs/deps'),
require('enb/techs/files'),
require('enb/techs/js'),
require('bh/techs/bh-server')
]);
nodeConfig.addTargets(['?.html', '?.js', '?.css']);
});
};
function getLevels(config) {
return [
'blocks.common',
'blocks.desktop'
]
.map(function(levelPath) {
return config.resolvePath(levelPath);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment