Webpacker
turbo-rails
Our great sponsors
Webpacker | turbo-rails | |
---|---|---|
54 | 48 | |
5,311 | 1,963 | |
-0.1% | 2.0% | |
4.6 | 8.5 | |
8 days ago | 7 days ago | |
Ruby | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Webpacker
-
Asset Pipeline JS Migration
Using Webpacker in Rails provides several advantages over the traditional asset pipeline. First, Webpacker uses JavaScript modules, which allows for better code organization and improved code reusability. Second, it offers modern frontend build tools, such as Babel and PostCSS, for transforming and compiling assets. Third, it provides faster build times and faster runtime performance through code splitting and lazy loading. Fourth, it offers better integration with JavaScript frameworks such as React, Vue, and Angular. Overall, Webpacker offers a more flexible and modern asset management solution for Rails applications. And while Webpacker is being retired, this initiative is to consolidate our code accordingly before moving our bundler to another solution.
-
Thank you Webpacker, Goodbye Webpacker
This article is replace Webpacker with Simpacker and webpack.
- Is enabling full source maps in production a wise default? (2017)
-
How to setup ruby on rails + Angular
in ruby on rails 7 what is the best way to properly install Angular because I can't find any documentation about it. The only tutorial that exists uses webpacker (https://github.com/rails/webpacker) but unfortunately it is no longer supported and no longer up to date in terms of security.
-
What is the pros and cons of using Rails asset pipeline vs. webpack to hold assets?
From the webpacker gem:
-
Webpacker can’t find application.js - fix or bypass completely?
Check this: https://github.com/rails/webpacker/issues/2825
-
Using Rails+ReactJS with Webpacker on VS Code?
instead of using webpacker you should move to esbuild or importmap. Webpacker has been retired a few months ago (cf https://github.com/rails/webpacker) There are videos explained how to set this up (e.g. for importmap https://learnetto.com/tutorials/how-to-use-react-with-rails-7
-
Moving from BS4 to BS5 in Rails 6, having unexpected results
Took me 2 days to find this bug report: https://github.com/rails/webpacker/issues/3188 (thanks again tagliala)
-
Webpacker 6 development continues as shakacode/shakapacker
But it's there in the webpacker README now, if anyone hasn't seen it. https://github.com/rails/webpacker
- Webpacker Has Been Retired
turbo-rails
-
Can't get Rails 7 turbo_stream_from to update view from broadcast
The install notes here link to an issue specific to webpacker. Try that and see if it works?
-
Strong reasons to pick htmx, over hotwire?
True, in theory it is. A lot of it is coded in libraries like turbo-rails, though. And these are Rails-specific. But I've seen it being used in some Laravel projects, also I used it with Hanami.
-
Rails 7 - Turbo Frame and Turbo Stream
Check out https://github.com/hotwired/turbo-rails/blob/main/app/models/turbo/streams/tag_builder.rb
-
Use turbo_streams to update the client in real time from inside a loop?
So apart from the pretty obvious question of "why on earth would you want to do this?", I think there's a misunderstanding here of the intended use case of turbo streams. You have a page, and then some state changes on the server and you want to update the page to reflect that. Incrementing a variable doesn't really qualify as a state change, but perhaps a Product changing from "not good" to "good" would be an event worth broadcasting, which you could do using the Broadcastable concern in turbo-rails.
-
Where do I start for learning "HTML over the wire"
Use this too: https://github.com/hotwired/turbo-rails
-
Using ViewComponents with Turbo
Not mentioned in the article, but it's nice that turbo-rails recently gained the ability to pass ViewComponent objects directly to turbo stream helpers. https://github.com/hotwired/turbo-rails/pull/433
- is turbo and stimulus compatible with rails 4 ?
-
Turbo-Rails just got better
Release notes: https://github.com/hotwired/turbo-rails/releases/tag/v1.4.0
-
Live Visit Count for website or page. ActionCable, Turbo Broadcasts, Kredis
turbo/streams_channel.rb - a way to link a turbo stream with an ActionCable channel.
-
We're breaking up with JavaScript front ends
The readme seems to give a pretty good overview of turbo: https://github.com/hotwired/turbo-rails
What are some alternatives?
shakapacker - Use Webpack to manage app-like JavaScript modules in Rails
Stimulus - A modest JavaScript framework for the HTML you already have
esbuild - An extremely fast bundler for the web
hotwire-rails - Use Hotwire in your Ruby on Rails app
Asset Sync - Synchronises Assets between Rails and S3
Turbolinks - Turbolinks makes navigating your web application faster
Sprockets
hotwire-tabs
jsbundling-rails - Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
Wicked Pdf - PDF generator (from HTML) plugin for Ruby on Rails
sprockets - Rack-based asset packaging system