Skip to content

Commit

Permalink
fix(build): don't ignore js in public
Browse files Browse the repository at this point in the history
Fix #540
  • Loading branch information
filipesilva committed Jun 18, 2016
1 parent b90a110 commit 15ef5b0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/broccoli/angular2-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,6 @@ class Angular2App extends BroccoliPlugin {
}));
}

// Add the public folder in.
buildTrees.push(new BroccoliFunnel(this._inputNode, {
allowEmpty: true,
srcDir: 'public',
name: 'PublicFolderFunnel'
}));

var merged = new BroccoliMergeTrees(buildTrees, { overwrite: true });

if (this.ngConfig.apps[0].mobile) {
Expand All @@ -159,6 +152,15 @@ class Angular2App extends BroccoliPlugin {
merged = this._getBundleTree(merged);
}

// Public folder funnel
var publicFolder = new BroccoliFunnel(this._inputNode, {
allowEmpty: true,
srcDir: 'public',
name: 'PublicFolderFunnel'
});

merged = new BroccoliMergeTrees([merged, publicFolder]);

return new BroccoliFunnel(merged, {
destDir: this._destDir,
overwrite: true
Expand Down

0 comments on commit 15ef5b0

Please sign in to comment.