File: minify

package info (click to toggle)
jquery 3.3.1~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 2,284 kB
  • sloc: php: 200; sh: 55; xml: 36; makefile: 33
file content (14 lines) | stat: -rwxr-xr-x 281 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

output="$1"

set -x

uglifyjs \
	--source-map ${output%%.js}.min.map \
	--source-map-url jquery.min.map \
	--output ${output%%.js}.min.js \
	"$output"

# remove sourceMappingURL comment, as upstream does
sed -i -e '/\/\/# sourceMappingURL=\S\+/ d' ${output%%.js}.min.js