Skip to content

Commit

Permalink
More concat docs tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy committed Feb 4, 2012
1 parent 1930507 commit 7f6a52b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/task_concat.md
Expand Up @@ -26,6 +26,8 @@ In this example, `grunt concat` will first strip any pre-existing banner comment

This generated banner will be the contents of the `meta.banner` mustache template string interpolated (in this case) with values imported from the `package.json` file (which are available via the `pkg` config property) plus today's date.

_Note: you don't have to use an external `.json` file. You could just have additional `meta` sub-properties that are referenced in the banner template like `meta.foo`. Also, you can specify the config property that `<banner>` uses. See the [directives](helpers_directives.md) page for more information on directives and their options._

```javascript
/*global config:true, task:true*/
config.init({
Expand All @@ -39,8 +41,6 @@ config.init({
});
```

_Note: you can specify the config property that `<banner>` uses. See the [directives](helpers_directives.md) page for more information on directives and their options._

In this example, `grunt concat` will build two separate files. One "basic" version, with the main file essentially just copied to `dist/basic.js`, and another "with_extras" concatenated version written to `dist/with_extras.js`.

While each concat target can be built individually by running `grunt concat:dist/basic.js` or `grunt concat:dist/with_extras.js`, running `grunt concat` will build all concat targets. This is because concat is a [basic task](tasks_creating.md).
Expand Down

0 comments on commit 7f6a52b

Please sign in to comment.