You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gulp plugin for generating an identity sourcemap for a file.
6
+
7
+
## Example
8
+
9
+
```js
10
+
var identityMap =require('@gulp-sourcemaps/identity-map');
11
+
12
+
gulp.src(...)
13
+
.pipe(sourcemaps.init())
14
+
.pipe(identityMap()) // .js and .css files will get a generated sourcemap
15
+
.pipe(sourcemaps.write())
16
+
.pipe(gulp.dest(...))
17
+
```
18
+
19
+
## API
20
+
21
+
### `identityMap()`
22
+
23
+
Returns an `objectMode` Transform stream that processes each file with a `.sourceMap` property and buffered contents. A sourcemap is generated and attached for each `.js` and `.css` file.
0 commit comments