Skip to content

Commit c57d70e

Browse files
committed
fix(broccoli): tune the build graph, support any asset file
1 parent 2995cfa commit c57d70e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/broccoli/angular2-app.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@ Angular2App.prototype.toTree = function () {
2929
allowEmpty: true
3030
});
3131

32-
var cssTree = new Funnel(sourceTree, {
33-
include: ['**/*.css'],
34-
allowEmpty: true
35-
});
36-
37-
var htmlTree = new Funnel(sourceTree, {
38-
include: ['**/*.html'],
32+
var assetTree = new Funnel(sourceTree, {
33+
include: ['**/*.*'],
34+
exclude: ['**/*.ts', '**/*.js'],
3935
allowEmpty: true
4036
});
4137

@@ -57,7 +53,7 @@ Angular2App.prototype.toTree = function () {
5753
// outputFile: '/app.js'
5854
// });
5955

60-
return mergeTrees([tsSrcTree, tsTree, jsTree, cssTree, htmlTree, this.index(), vendorJsTree], { overwrite: true });
56+
return mergeTrees([assetTree, tsSrcTree, tsTree, jsTree, this.index(), vendorJsTree], { overwrite: true });
6157
};
6258

6359
/**

0 commit comments

Comments
 (0)