Skip to content

Commit

Permalink
min.js in minifier
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Aug 29, 2016
1 parent 3dfc8a7 commit 9c196a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mad_static.erl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ main(Config, ["min"]) ->
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,".js -p 5 -c -m"]),
" -o ",element(1,Minify),"/",AppName,".min.js -p 5 -c -m"]),
io:format("Minify: ~p~n",[Command]),
case sh:run(Command) of
{_,0,_} -> {ok,static};
Expand Down

0 comments on commit 9c196a1

Please sign in to comment.