Skip to content

Commit

Permalink
Fail on error, disable advanced optimalisations.
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 23, 2010
1 parent 1be7e97 commit 0985f7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/compress-js
@@ -1,7 +1,9 @@
#!/bin/sh

set -e

for file in `find js -name '*.js' -not -name '*min.js'` ; do
mkdir -p sources/`dirname $file`
mv $file sources/$file
java -jar ./scripts/google-javascript-compiler/compiler.jar --js sources/$file --js_output_file $file --compilation_level ADVANCED_OPTIMIZATIONS
java -jar ./scripts/google-javascript-compiler/compiler.jar --js sources/$file --js_output_file $file
done

0 comments on commit 0985f7d

Please sign in to comment.