Skip to content

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

gulp-inline-sourcemap

NPMNPM downloads

Gulp task for appending external SourceMap to the end of js-bundle (those within a //# sourceMappingURL=... declaration) into base64-encoded data URI strings.

Install

Install with npm

npm install gulp-inline-sourcemap --save-dev

Example usage

vargulp=require('gulp');varinlineSourceMap=require('gulp-inline-sourcemap');//basic examplegulp.task('build',function(){returngulp.src('./*.js').pipe(inlineSourceMap()).pipe(gulp.dest('./public/js'));});
...
//example with optionsgulp.task('build',function(){returngulp.src('./*.js').pipe(inlineSourceMap({baseDir: 'public',debug: true})).pipe(gulp.dest('./public/js'));});

Options

  • baseDir (String)
    If you have absolute paths, the path specified in this option will be used as the base directory (relative to gulpfile).

  • debug (Boolean)
    Enable log to console.

About

Gulp task for appending external SourceMap to the end of js-bundle (those within a //# sourceMappingURL=... declaration) into base64-encoded data URI strings.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages