package
concatenate JavaScript files, handling source map bits
npm install cat-source-mapGitHub-flavored package documentation.
Across all versions, last 30 days.
26 in 30 days
Runtime metadata.
Estimated unpacked size across 5 packages.
1.1 MB
Includes dependencies.
3 direct · 3 outdated
Registry package owners.
concatenate JavaScript files, handling source map bits
cat-source-map [options] srcFile1 srcFile2 ... outFile
options:
--fixFileNames -f normalize file names
--verbose -v be verbose
--help -h print this helpOutput 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.
npm install cat-source-mapYou 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.
https://github.com/pmuellr/cat-source-map