» npm install --global --production source-map-cat» 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.mapSee ./test/Makefile for a more complete example.
- browserify-sourcemap-example
- Mozilla's source-map node module
- HTML5 Rocks Source Maps tutorial
- CSS Ninja Multi-level source map article
- The new sections part of the source-map spec should save some space
- Nick Fitzgerald's weblog
- Generating source maps
- Source map visualizer tool
- Mozilla Hacks: Compiling to JavaScript, and Debugging with Source Maps
- Source map visualization (with colors)