From 6b3fdb08802e9db8a4b816b8b87b674e8bdcfcb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 1 Aug 2011 16:09:16 +0100 Subject: [PATCH] Improve instructions for making UglifyJS work. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 09a5e38c..d3a781f3 100644 --- a/README.md +++ b/README.md @@ -56,10 +56,11 @@ You will then find the built library inside the `dist` folder, named `paper.js`. commented Preprocessed but still formated and commented stripped Formated but without comments (default) - compressed No comments and no whitespaces - uglified Uses UglifyJS to further reduce file size + 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` +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. + + ln -s ~/Development/JavaScript/uglifyjs ~/.node_libraries/uglify-js ### Building the Documentation