Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
Use local uglify-js to replace online javascript-minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello committed Sep 27, 2020
1 parent c9d3e83 commit 870ef97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

all: test proxy.pac

proxy.pac: proxy.src.pac
@curl -X POST -s --data-urlencode 'input@proxy.src.pac' http://javascript-minifier.com/raw > proxy.pac
proxy.pac: node_modules/uglify-js/bin/uglifyjs proxy.src.pac
@"./node_modules/uglify-js/bin/uglifyjs" --mangle --compress if_return=true -o proxy.pac proxy.src.pac
@sed -i 's/^/\/\* https:\/\/github.com\/PeterDaveHello\/YZU-Proxy-PAC \*\/\n/g' proxy.pac

clean:
Expand Down

0 comments on commit 870ef97

Please sign in to comment.