Skip to content

Commit

Permalink
removed uglify option which was not working right
Browse files Browse the repository at this point in the history
  • Loading branch information
malgorithms committed Aug 1, 2012
1 parent 9b09765 commit 9879332
Show file tree
Hide file tree
Showing 5 changed files with 4,126 additions and 84 deletions.
7 changes: 1 addition & 6 deletions lib/view.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"bin": "./bin/toffee",
"dependencies": {
"coffee-script": "*",
"commander": "*",
"uglify-js": "*"
"commander": "*"
},
"repository": {
"type": "git",
Expand Down
10 changes: 2 additions & 8 deletions src/view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ catch e
coffee = require "coffee-script"

minimizeJs = (js) ->
#return js
jsp = require("uglify-js").parser
pro = require("uglify-js").uglify
ast = jsp.parse js
#ast = pro.ast_mangle ast
ast = pro.ast_squeeze ast
return pro.gen_code ast

# uglify doesn't seem to be working right; #TODO: This
js

getCommonHeaders = (include_bundle_headers) ->
###
Expand Down
Loading

0 comments on commit 9879332

Please sign in to comment.