Questions tagged [webpacker]

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. It coexists with the asset pipeline and can even replace it by processing CSS, images, fonts, and more.

Features

License

MIT

Links

GitHub

RubyGems

817 questions
8
votes
1 answer

How to execute custom javascript functions in Rails 6

With the arrival of Webpacker to Ruby On Rails, I can't find a way to use my JavaScript functions. I have a file called app-globals.js with a function to test: function alerts() { alert("TEST") } Then I want to use it in one of my views: <% =…
Johan Donado B.
  • 223
  • 3
  • 10
8
votes
2 answers

Using