Licence
MIT
Version
2.0.1
Deps
5
Size
6 kB
Vulns
5
Weekly
0
@gulp-sourcemaps/identity-map
Gulp plugin for generating an identity sourcemap for a file.
Example
var identityMap = require('@gulp-sourcemaps/identity-map');
gulp.src(...)
.pipe(sourcemaps.init())
.pipe(identityMap()) // .js and .css files will get a generated sourcemap
.pipe(sourcemaps.write())
.pipe(gulp.dest(...))
API
identityMap()
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.
License
MIT