fix(broccoli): tune the build graph, support any asset file

This commit is contained in:
Igor Minar 2015-10-18 18:31:43 +01:00
parent 2995cfa44a
commit c57d70e1c0

View File

@ -29,13 +29,9 @@ Angular2App.prototype.toTree = function () {
allowEmpty: true allowEmpty: true
}); });
var cssTree = new Funnel(sourceTree, { var assetTree = new Funnel(sourceTree, {
include: ['**/*.css'], include: ['**/*.*'],
allowEmpty: true exclude: ['**/*.ts', '**/*.js'],
});
var htmlTree = new Funnel(sourceTree, {
include: ['**/*.html'],
allowEmpty: true allowEmpty: true
}); });
@ -57,7 +53,7 @@ Angular2App.prototype.toTree = function () {
// outputFile: '/app.js' // outputFile: '/app.js'
// }); // });
return mergeTrees([tsSrcTree, tsTree, jsTree, cssTree, htmlTree, this.index(), vendorJsTree], { overwrite: true }); return mergeTrees([assetTree, tsSrcTree, tsTree, jsTree, this.index(), vendorJsTree], { overwrite: true });
}; };
/** /**