Skip to content

Commit

Permalink
document depCache idea in builder API
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 8, 2015
1 parent 5a514fc commit 5f4e8e0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,15 @@ builder.config({ custom: 'options' });

// or builder.buildStatic
builder.bundle('app/main.js', {
minify: true,

// inject the bundle config into the configuration file
inject: true
minify: true
})
.then(function(output) {
// output is now an in-memory build
})
// output.source

// get the depCache configuration for the tree
var depCache = builder.getDepCache(output.tree);
});
```

The builder will be automatically configured to have the correct jspm configuration and baseURL for the environment.
Expand Down

0 comments on commit 5f4e8e0

Please sign in to comment.