Skip to content

Commit

Permalink
Updated README with sourceMap options
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Jul 19, 2014
1 parent cb6aab5 commit 81a324f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ _(Default processing options are explained in the [grunt.template.process][] doc
[templates]: https://github.com/gruntjs/grunt-docs/blob/master/grunt.template.md
[grunt.template.process]: https://github.com/gruntjs/grunt-docs/blob/master/grunt.template.md#grunttemplateprocess

#### sourceMap
Type: `Boolean`
Default: `false`

Set to true to create a source map. The source map will be created alongside the destination file, and share the same file name with the `.map` extension appended to it.

#### sourceMapName
Type: `String` `Function`
Default: `undefined`

To customize the name or location of the generated source map, pass a string to indicate where to write the source map to. If a function is provided, the concat destination is passed as the argument and the return value will be used as the file name.

#### sourceMapStyle
Type: `String`
Default: `embed`

Determines the type of source map that is generated. The default value, `embed`, places the content of the sources directly into the map. `link` will reference the original sources in the map as links. `inline` will store the entire map as a data URI in the destination file.

### Usage Examples

#### Concatenating with a custom separator
Expand Down Expand Up @@ -277,4 +295,4 @@ grunt.initConfig({

Task submitted by ["Cowboy" Ben Alman](http://benalman.com/)

*This file was generated on Fri Jun 13 2014 23:50:42.*
*This file was generated on Sat Jul 19 2014 14:23:02.*

0 comments on commit 81a324f

Please sign in to comment.