webpacker is confusing me
I have been out of the Rails game for a few years and apparently the asset pipeline changed.
I cant figure out how to do the equivalent of the good old
I cant figure out how to do the equivalent of the good old
//= require active_storage_drag_and_drop
with webpacker. How are we supposed to include JS from gems?!?
I have about 50 hours of GoRails videos in my backlog for the next few weeks, but until I have the time for it, I need to get my app out asap.
Thx
The asset pipeline isn't used for Javascript anymore, so you'll now included Javascript from npmjs.com instead of gems.
For that gem, you could copy the Javascript from the gem into your app/javascript folder and require it in your application.js pack file.
You probably want to contact the gem author about having him package and publish the Javascript as a node module, so it can be used more easily with Webpacker.
For that gem, you could copy the Javascript from the gem into your app/javascript folder and require it in your application.js pack file.
You probably want to contact the gem author about having him package and publish the Javascript as a node module, so it can be used more easily with Webpacker.
Notifications
You’re not receiving notifications from this thread.