frac/misc/strip_sourcemap.sh
SheetJS 2f54d2f5c1 version bump 1.0.1: cleanup and python
- demo page (gh-pages branch)
- updated year
- flow annotations in separate frac.flow.js file
- introduced build infrastructure from js-xlsx
- python version
2015-04-21 21:14:03 -07:00

12 lines
264 B
Bash
Executable File

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