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.
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: GitHub - 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!
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.
______________________________________________
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 -- Info | ruby-talk@ml.ruby-lang.org - ml.ruby-lang.org
сб, 30 сент. 2023 г. в 22:22, hmdne via ruby-talk < ruby-talk@ml.ruby-lang.org>:
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: GitHub - 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.
______________________________________________
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 -- Info | ruby-talk@ml.ruby-lang.org - ml.ruby-lang.org