Ejemplo n.º 1
0
 .then(function(buildTree) {
   if (opts.inject) {
     // Add the bundle to config if the inject flag was given.
     var bundleName = extractBundleName(fileName);
     if (!config.loader.bundles) {
       config.loader.bundles = {};
     }
     config.loader.bundles[bundleName] = Object.keys(buildTree).filter(function(moduleName) {
       return buildTree[moduleName].metadata.build !== false;
     });
     ui.log('ok', '`' + bundleName + '` added to config bundles.');
   }
   return systemBuilder.buildTree(buildTree, fileName, opts);
 })
Ejemplo n.º 2
0
 .then(function(buildTree) {
   logTree(buildTree);
   if (!('lowResSourceMaps' in opts))
     opts.lowResSourceMaps = true;
   return systemBuilder.buildTree(buildTree, fileName, opts);
 })