printj/misc/strip_sourcemap.sh
SheetJS 35ed07bfb6 version bump 1.0.0
- added dist and minified source
- sharpened node check
2017-01-04 21:34:31 -05:00

12 lines
267 B
Bash
Executable File

#!/bin/bash
# strip_sourcemap.sh -- strip sourcemaps from a JS file (missing from uglifyjs)
# Copyright (C) 2014-present SheetJS
if [ $# -gt 0 ]; then
if [ -e "$1" ]; then
sed -i .sheetjs '/sourceMappingURL/d' "$1"
fi
else
cat - | sed '/sourceMappingURL/d'
fi