Skip to content

Commit

Permalink
new uglify
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Mar 1, 2017
1 parent 64c5ddd commit d821e57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mad.hrl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-define(VERSION,"f4aae7").
-define(VERSION,"64c5dd").
Binary file modified mad
Binary file not shown.
4 changes: 2 additions & 2 deletions src/mad_static.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ main(Config, ["min"]) ->
N2O = proplists:get_value(n2o,SysConfig,[]),
AppName = proplists:get_value(app,N2O,sample),
Minify = proplists:get_value(minify,N2O,[]),
Command = lists:concat(["uglifyjs ",string:join(element(2,Minify)," "),
" -o ",element(1,Minify),"/",AppName,".min.js -p 5 -c -m"]),
Command = lists:concat(["uglify -s ",string:join(element(2,Minify),","),
" -o ",element(1,Minify),"/",AppName,".min.js"]),
io:format("Minify: ~p~n",[Command]),
case sh:run(Command) of
{_,0,_} -> {ok,static};
Expand Down

0 comments on commit d821e57

Please sign in to comment.