That's a really cool development! What's more - I think this could be
integrated into the upstream Sprockets repository.
Myself, I use Sprockets outside of Rails, but I plan to migrate over to
Tilt in the future - I have built in the past this:
https://github.com/hmdne/roda-sprockets which basically integrates
Sprockets with Roda. Unfortunately, the problem with Sprockets as I see
is that it doesn't support multiprocessing when building assets.
Also, in my experience, Google Closure Compiler still produced better
results than Terser.
On Thu, 2023-09-28 at 23:00 -0400, Javier Menéndez Rizo via ruby-talk
wrote:
> sprockets_terser_with_source_maps version 1.0.0 has been released!
>
> * home:
> <https://github.com/javier-menendez/sprockets_terser_with_source_maps
> >
>
> Create source maps when compressing assets in your Rails
> applications.
>
> This gem uses Terser to create source maps for your concatenated
> javascripts in Rails. It is meant to be used as a replacement for
> javascript compressor.
>
> This is a fork from
> <https://github.com/AlexanderPavlenko/sprockets_uglifier_with_source_
> maps> to generate source maps using terser as compressor.
> ______________________________________________
> ruby-talk mailing list -- ruby-talk@ml.ruby-lang.org
> To unsubscribe send an email to ruby-talk-leave@ml.ruby-lang.org
> ruby-talk info --
> https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-talk.ml.ruby-lang.org/
______________________________________________
ruby-talk mailing list -- ruby-talk@ml.ruby-lang.org
To unsubscribe send an email to ruby-talk-leave@ml.ruby-lang.org
ruby-talk info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-talk.ml.ruby-lang.org/