Skip to content

Commit 2581efd

Browse files
committed
switch from closure compiler to uglify
1 parent 23ccbc4 commit 2581efd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This library makes it easier to quickly prototype WebGL applications. It's lower
66

77
* `python build.py`: build `lightgl.js` from the files in the `src` directory
88
* `python build.py debug`: rebuild the library any time the contents of the `src` directory change
9-
* `python build.py release`: minify the library using Google Closure Compiler, which assumes there is a `closure` command in your path that runs `compiler.jar`
9+
* `python build.py release`: minify the library using [UglifyJS](https://github.com/mishoo/UglifyJS2), which assumes there is an `uglifyjs` command in your path
1010
* `docco src/*.js`: build the documentation, which is generated in the `docs` directory
1111

1212
The latest lightgl.js build can be found at http://evanw.github.com/lightgl.js/lightgl.js.

Diff for: build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def build():
4242
os.write(f1, data)
4343
os.close(f1)
4444
os.close(f2)
45-
os.system('closure --js %s --js_output_file %s' % (temp1_path, temp2_path))
45+
os.system('uglifyjs "%s" -mo "%s"' % (temp1_path, temp2_path))
4646
os.remove(temp1_path)
4747
data = open(temp2_path).read()
4848
os.remove(temp2_path)

0 commit comments

Comments
 (0)