How to use Bootstrap, jQuery and other libraries in Rails 6 with Webpacker

Since Rails 6 , Webpacker has replaced the old assets pipeline (sprockets) to handle the javascript compilation and minification.Webpacker is a gem which is a wrapper for webpack.js, webpack.js handles bundling of javascript code, and webpacker lets us interface with webpack in our Rails app. This article won't go deep on how webpacker works, I recommend Prathamesh's article on understanding webpacker if you want to know more on how webpacker works. GoRails also have a great screencast on this topic.This article assumes you are starting a new Rails 6 project and want to use Bootstrap.
How to use Bootstrap, jQuery and other libraries in Rails 6 with Webpacker #ruby #rubydeveloper #rubyonrails #bootstrap, #jquery #webpacker https://rubyonrails.ba/single/how-to-use-bootstrap-jquery-and-other-libraries-in-rails-6-with-webpacker

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles