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
});
var cssTree = new Funnel(sourceTree, {
include: ['**/*.css'],
allowEmpty: true
});
var htmlTree = new Funnel(sourceTree, {
include: ['**/*.html'],
var assetTree = new Funnel(sourceTree, {
include: ['**/*.*'],
exclude: ['**/*.ts', '**/*.js'],
allowEmpty: true
});
@ -57,7 +53,7 @@ Angular2App.prototype.toTree = function () {
// 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 });
};
/**