Skip to content

A gobble plugin to adjust sourcemaps to have paths relative to the project root

License

Notifications You must be signed in to change notification settings

evs-chris/gobble-relative-sourcemaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobble-relative-sourcemaps

Adjust the paths in sourcemaps to be relative to the project root instead of absolute with gobble paths.

Installation

First, you need to have gobble installed - see the gobble readme for details. Then, simply reference 'relative-sourcemap' in a transform, and gobble will take care of getting the plugin installed.

Usage

relative-sourcemaps is a file transform that will be run on any .map files at the stage in the gobble pipeline in which it is called. You probably want to insert it somewhere near the end.

gobble(lastStep).transform('relative-sourcemaps');

Options

  • prefix - defaults to '' - a new prefix to apply e.g. to make $projectDir/foo.js become $prefix/foo.js in the sourcemap

License

Copyright (c) 2014 Chris Reeves. Released under an MIT license.

About

A gobble plugin to adjust sourcemaps to have paths relative to the project root

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published