How to use Bootstrap, jQuery and other libraries in Rails 6 with Webpacker
27-Aug-2020 1739
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 #other #libraries #Rails #Webpacker #bootstrap, #jquery #webpacker https://www.rubyonrails.ba/link/how-to-use-bootstrap-jquery-and-other-libraries-in-rails-6-with-webpacker