mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
fix(broccoli): tune the build graph, support any asset file
This commit is contained in:
parent
2995cfa44a
commit
c57d70e1c0
12
lib/broccoli/angular2-app.js
vendored
12
lib/broccoli/angular2-app.js
vendored
@ -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 });
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user