|
1 | 1 | # vinyl-fs [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url]
|
2 | 2 | ## Information
|
3 |
| -<table><br><tr><br><td>Package</td><td>vinyl-fs</td><br></tr><br><tr><br><td>Description</td><br><td>Vinyl adapter for the file system</td><br></tr><br><tr><br><td>Node Version</td><br><td>>= 0.10</td><br></tr><br></table> |
| 3 | +<table><br><tr><br><td>Package</td><td>vinyl-fs</td><br></tr><br><tr><br><td>Description</td><br><td>Vinyl adapter for the file system</td><br></tr><br><tr><br><td>Node Version</td><br><td>>= 0.10</td><br></tr><br></table> |
4 | 4 |
|
5 | 5 | ## Usage
|
6 | 6 |
|
@@ -50,7 +50,6 @@ fs.src(['*.js', '!b*.js'])
|
50 | 50 | - `false` will disable writing the file to disk via `.dest()`.
|
51 | 51 |
|
52 | 52 | - since - `Date` or `number` if you only want files that have been modified since the time specified.
|
53 |
| - |
54 | 53 | - stripBOM - `true` or `false` if you want the BOM to be stripped on UTF-8 encoded files.
|
55 | 54 | - Default value is `true`.
|
56 | 55 |
|
@@ -97,8 +96,14 @@ _Note:_ UTF-8 BOM will be stripped from all UTF-8 files read with `.src`.
|
97 | 96 |
|
98 | 97 | - sourcemaps -
|
99 | 98 | - Default is `null` aka do not write sourcemaps.
|
100 |
| - - Use `.` to write sourcemaps as files |
101 | 99 | - Uses `gulp-sourcemaps` under the hood
|
| 100 | + - Examples: |
| 101 | + - Write as inline comments |
| 102 | + - fs.dest('./', {sourcemaps: true}) |
| 103 | + - Write as files in the same folder |
| 104 | + - fs.dest('./', {<br> sourcemaps: {<br> path: '.'<br> }<br>}) |
| 105 | + - Any other options are passed through to `gulp-sourcemaps` |
| 106 | + - fs.dest('./', {<br> sourcemaps: {<br> path: '.',<br> addComment: false,<br> includeContent: false<br> }<br>}) |
102 | 107 |
|
103 | 108 | - Returns a Readable/Writable stream.
|
104 | 109 | - On write the stream will save the [vinyl] File to disk at the folder/cwd specified.
|
|
0 commit comments