Wednesday, June 5, 2013

[Rails] Re: Precompile with compression in development



On Wednesday, June 5, 2013 4:58:16 AM UTC-4, Michael Kastner wrote:
Hi,

I'd like to do precompilation with compression in development mode.

I've set

config.assets.js_compressor  = :uglifier
config.assets.css_compressor = :sass

in development.rb.

But compression only seems to work in production mode, is that right?

Michael Kastner

i assume this is rails 4.  You can turn on compression in development by making the following change in your development.rb file:

config.assets.debug = false


--
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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c3a3c2e2-7f2d-43cf-a80e-bb6168248871%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate