Replacing the Rails Asset Pipeline with Webpack and Yarn

23-Nov-2016 2990

Ruby on Rails has a pretty sweet ecosystem. We have libraries for everything from printing a table flipping emojicon on an exception to natural language processing. Just add the desired libraries to your Gemfile, type bundle, and you’re on your way (ahem. Usually).

When it comes to dealing with JavaScript libraries in a Rails project, however, things aren’t as straightforward. Should you download the Javascript code and manually store it in the /vendor directory or look for a wrapper gem that’ll just make the bad Javascript man go away? If you install the libraries manually, it’s up to you to ensure all the dependent libraries are also installed. 

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