mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Switch to UglifyJS version 1 as installed by NPM.
This commit is contained in:
parent
e073cafd2c
commit
6da0b50813
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue