Wins Lin
2013-May-08 14:30 UTC
Rails asset precompilation doesn''t remove comments. How to enable?
I want to to test precompilation on development mode. I set: config.assets.digest = true config.assets.debug = false Then I run: rake assets:precompile:all RAILS_ENV=development All works, assets are precompiled but comments are not removed. What options should I provide to make it to remove comments from assets on precompile? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Wins Lin
2013-May-08 17:18 UTC
Re: Rails asset precompilation doesn''t remove comments. How to enable?
Ok, I found the solution. I compile assets with Heroku. Since I use Windows and there are some problems with Uglifier under Windows, the option:>> config.assets.compress = truebreaks down local precompilation. So I decided to compile my assets using Heroku because Heroku seems doesn''t use Windows, they use open source software :) And that''s not bad, at least somebody has to use it. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.