The tale of Sprockets and Webpacker duality

15-Sep-2021 1117

I push my fingers onto my… keyboard; it’s the only… way to run rails assets:precompile and get two independent bundles: one generated with Sprockets and the other using Webpacker! There’s nothing unusual about this idea so far. Well, except that both bundles are compiled from the same source files and provide equal functionality. “What the heck are you doing?” I’m migrating a large Rails application from Sprockets to Webpacker using a dual build strategy. Does this all sound new to you? Then keep reading!

Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle