Install ruby-webpack-rails by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-webpack-rails
Description:
Webpack & Rails integration made easier
Production-tested, JavaScript-first tooling to use webpack within your Rails application. . Webpack takes code targeted at node.js and makes it run in the browser. Node.js comes with API of its own that is not available in the browsers. Webpack exposes this code to programs that are unaware they are running in a browser. . This allows using nodejs modules directly in rails applications without using wrappers like jquery-rails or rails-assets-jquery.
Homepage: http://github.com/mipearson/webpack-rails
Version: 0.9.11-1
Section: universe/ruby