Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to minify a ruby file

Tags:

ruby

minify

As we know, there are a lot of tools or library to minify javascript, css, is there any tool or library to minify ruby file? After searching in google, there is no right answer for the question.

Thanks a lot.

like image 633
user2612996 Avatar asked Jul 24 '13 04:07

user2612996


1 Answers

Use Jruby!

When packaging your application into a war or jar you can pass it a compiled flag which will compile .rb files into java's .class bytecode file

Warbler documentation

like image 61
Ruslan Avatar answered Sep 27 '22 16:09

Ruslan