Switch to UglifyJS version 1 as installed by NPM.

This commit is contained in:
Jürg Lehni 2012-11-23 13:05:24 -08:00
parent e073cafd2c
commit 6da0b50813
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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