Use UglifyJS 2.4.7

The |uglifyjs| call had to be adapted because the options changed
significantly in version 2.
This commit is contained in:
David Majda 2013-12-14 11:49:00 +01:00
parent 976328b7d6
commit 1ea9a5f340
2 changed files with 7 additions and 2 deletions

View file

@ -106,7 +106,12 @@ browser:
echo ' return modules["peg"]' >> $(BROWSER_FILE_DEV)
echo '})();' >> $(BROWSER_FILE_DEV)
$(UGLIFYJS) --ascii -o $(BROWSER_FILE_MIN) $(BROWSER_FILE_DEV)
$(UGLIFYJS) \
--mangle \
--compress warnings=false \
--comments /Copyright/ \
-o $(BROWSER_FILE_MIN) \
$(BROWSER_FILE_DEV)
# Remove browser version of the library (created by "browser")
browserclean:

View file

@ -42,7 +42,7 @@
},
"devDependencies": {
"jasmine-node": "= 1.11.0",
"uglify-js": "= 1.3.4",
"uglify-js": "= 2.4.7",
"jshint": "= 0.9.1"
},
"engines": {