cat-source-map

0.1.2 • Public • Published

cat-source-map

concatenate JavaScript files, handling source map bits

usage

cat-source-map [options] srcFile1 srcFile2 ... outFile

options:
    --fixFileNames   -f   normalize file names
    --verbose        -v   be verbose
    --help           -h   print this help

Output files ${outFile} and ${outFile}.map.json will be generated by concatenating the source files into the outFile, and recalculating the source maps into the .map.json outFile.

The --fixFileNames option will try to make the file names in the output sources property relative and will remove leading . and .. path entries.

installation

npm install cat-source-map

You probably just want to add this to each package that uses it, as an entry in devDependencies. You can then invoke it from a build script as node_modules/.bin/cat-source-map.

hacking

https://github.com/pmuellr/cat-source-map

license

Apache License, Version 2.0

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i cat-source-map

Weekly Downloads

1

Version

0.1.2

License

none

Last publish

Collaborators

  • pmuellr
  • yannickcr