Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

jaywcjlove/gulp-sourcemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gulp-sourcemap

Warning
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
The gulp-sourcemap plugin can be removed. Gulp already has built-in support for source maps. https://gulpjs.com/docs/en/api/src/#sourcemaps

Source map support for Gulp.js.
Write inline source maps.
Inline source maps are embedded in the source file.

Usage

Example:

var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemap');
gulp.src('dist/JSLite.js')
    .pipe(sourcemap({
        outSourceMap:'JSLite.js.map',
        sourceRoot:"http://jslite.io",
        write:'./build/'
    }))
    .pipe(gulp.dest('./build/'));

Options

sourceRoot root: the sourceRoot property (see the spec)
outSourceMap The inSourceMap is only used if you also request outSourceMap (it makes no sense otherwise).