Top "Webpacker" questions

Webpacker is a Ruby gem for Ruby on Rails that makes it easy to use Webpack, the JavaScript module bundler, to manage application-like JavaScript in Rails.

How to import and use image in a Vue single file component?

I think this should be simple, but I am facing some trouble on how to import and use an image …

vue.js vuejs2 webpacker
Using Rails-UJS in JS modules (Rails 6 with webpacker)

i just switched to Rails 6 (6.0.0.rc1) which uses the Webpacker gem by default for Javascript assets together with Rails-UJS. I …

ruby-on-rails webpack webpacker rails-ujs
How to add jquery third party plugin in rails 6 webpacker

I know its simple but with update of rails 6. there is new syntax in rails 6 for manage javascript assets which …

javascript ruby-on-rails webpacker ruby-on-rails-6
Rails: Webpacker 4.2 can't find application in /app/public/packs/manifest.json heroku

I'm a bit stumped. My local rails app works great with webpacker 4.2 and react, but when deploying to production gives …

javascript ruby-on-rails webpack webpacker
Rails: Webpacker::Manifest::MissingEntryError in Home#index

Webpacker::Manifest::MissingEntryError in Home#index Showing /Users/khalidhosein/Desktop/myEPKmedia/builder/khalid101/app/views/layouts/embedded_app.html.erb …

ruby-on-rails reactjs webpacker
How to use jQuery with rails webpacker 3

I generate a new rails app : rails new titi --webpack=vue and would like to use jQuery (or other libs …

jquery ruby-on-rails webpacker
How to install Webpacker with rails?

I'm trying to install webpacker to be able to launch yarn server. I'm on rails 5 and the gem is installed. …

ruby-on-rails ruby yarnpkg webpacker
How to handle images in a Rails / Webpacker / React app?

I am using Webpacker with rails 5.1.4 to play with React, Redux, and react-router-dom. I have a Navbar.jsx component in …

ruby-on-rails reactjs webpack webpacker
stylesheet_pack_tag not finding app/javascript/src/application.css in rails 5.1 with webpacker gem

I am receiving this error when I try to load a page in my new rails 5.1 app using webpacker. I …

css ruby-on-rails-5 webpacker
Rails 6: How to add jquery-ui through webpacker?

I'm currently trying to implement a datepicker into my application, the problem is that there is no documentation on how …

ruby-on-rails jquery-ui webpacker ruby-on-rails-6