Skip to content

Commit ebaffbe

Browse files
committed
Upgrade documentation
1 parent 7a0c94a commit ebaffbe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ Default: `true` (always overwrite existing files)
199199

200200
##### `options.sourcemaps`
201201

202-
Enables sourcemap support on files passed through the stream. Will write inline soucemaps if specified as `true`. Uses [gulp-sourcemaps] under the hood.
202+
Enables sourcemap support on files passed through the stream. Will write inline soucemaps if specified as `true`.
203+
Specifying a `string` is shorthand for the path option. Uses [gulp-sourcemaps] under the hood.
203204

204205
Examples:
205206

@@ -211,9 +212,7 @@ vfs.dest('./', {
211212

212213
// Write as files in the same folder
213214
vfs.dest('./', {
214-
sourcemaps: {
215-
path: '.'
216-
}
215+
sourcemaps: '.'
217216
});
218217

219218
// Any other options are passed through to [gulp-sourcemaps]
@@ -226,7 +225,7 @@ vfs.dest('./', {
226225
});
227226
```
228227

229-
Type: `Boolean` or `Object`
228+
Type: `Boolean`, `String` or `Object`
230229

231230
Default: `undefined` (do not write sourcemaps)
232231

0 commit comments

Comments
 (0)