Skip to content

About

cat for JS source maps.

Resources

Stars

10 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cat for Javascript source maps

Install:

» npm install --global --production source-map-cat

Usage:

» source-map-cat -h
usage: source-map-cat [-h] [-v] -f SOURCE_FILE [source maps [source maps ...]]

cat for JS source maps

Positional arguments:
  source maps           source maps to concatenate

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  -f SOURCE_FILE, --source-file SOURCE_FILE
                        source file name
» # Concatenate JS files
» cat jquery-1.9.0.min.js hello.js > jquery-hello.js

» # Append source map url to combined file (or use HTTP X-SourceMap header)
» echo '//@ sourceMappingURL=jquery-hello.js.map' >> jquery-hello.js

» # Concatenate source maps
» source-map-cat --source-file jquery-hello.js \
     hello.js.map jquery-1.9.0.min.map > jquery-hello.js.map

See ./test/Makefile for a more complete example.

Useful Links:

Tools and Languages with Source Map Support

About

cat for JS source maps.

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages