From 6da0b50813aa44c6829b70ac5a1cee029309a1a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 23 Nov 2012 13:05:24 -0800 Subject: [PATCH] Switch to UglifyJS version 1 as installed by NPM. --- README.md | 4 ++-- build/preprocess.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3a781f3..4908674e 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,9 @@ You will then find the built library inside the `dist` folder, named `paper.js`. stripped Formated but without comments (default) compressed Uses UglifyJS to reduce file size -In order for UglifyJS to work when building Paper.js, it needs to be located in a folder name `uglifyjs` on the same level as your `paper.js` project folder. Alternatively you can also adjust the path in `build/preprocess.sh`. You also need to make sure that node will find the uglifyjs library by making a symbolic link to it from `~/.node_libraries/uglify-js`, e.g. +In to build a compressed version of Paper.js, UglifyJS version 1 needs to be installed: - ln -s ~/Development/JavaScript/uglifyjs ~/.node_libraries/uglify-js + npm install uglify-js@1 ### Building the Documentation diff --git a/build/preprocess.sh b/build/preprocess.sh index 6624a3bb..9516956a 100755 --- a/build/preprocess.sh +++ b/build/preprocess.sh @@ -42,7 +42,7 @@ case $1 in ;; compressed) eval $COMMAND > temp.js - ../../uglifyjs/bin/uglifyjs temp.js --extra --unsafe --reserved-names "_$_,$_" > $5 + uglifyjs temp.js --extra --unsafe --reserved-names "_$_,$_" > $5 rm temp.js ;; esac