ludc
2023-08-24 56c45e1f4be85d6bbfb3a03437021c6742b32ad9
1
2
3
4
5
6
7
8
9
10
11
#!/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