In a development environment it recompiles the assets on every
request. When in production it does it once and adds a hash to the
filename for caching.
Dieter Lunn
http://ubiety.ca
On Sun, Jul 3, 2011 at 11:15 AM, Jeff Pickhardt
<pickhardt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> With the Ruby on Rails asset pipeline in RoR 3.1, it''s unclear if
the
> .coffee and the //= require files get processed only once or with each
asset
> request.
>
> For example, I have a file that looks like this:
>
> //= require source/main.js.coffee
> //= require source/second.js.coffee
> //= require source/third.js.coffee
>
> Ideally, the server would compile these to js ONCE, then bundle them, then
> create a static file. Otherwise it''s going to be wasting cycles
repeating
> effort.
>
> Can someone clarify what happens?
>
> Thanks,
> Jeff
>
> --
> Jeff Pickhardt
> (650) 530-0036
> pickhardt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.