cssbundling-rails
Bundle and process CSS in Rails with Tailwind, PostCSS, and Sass via Node.js. (by rails)
propshaft
Deliver assets for Rails (by rails)
Our great sponsors
cssbundling-rails | propshaft | |
---|---|---|
27 | 11 | |
552 | 812 | |
2.5% | 3.4% | |
6.4 | 6.8 | |
6 days ago | 9 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
cssbundling-rails
Posts with mentions or reviews of cssbundling-rails.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-19.
-
Live reload a Rails 7 application, an unsatisfaying attempt
See the issue I opened on Github. [EDIT: closed by DHH recently]
-
Connecting Debugger to Rails Applications
In the Procfile.dev that's currently generated by the cssbundling-rails and jsbundling-rails gems, we can see that they write the web process like:
- Ruby 3.2 + Rails 7 + Tailwind + Font Awesome - should be blazing fast, yet tests very slow. 20 requests are being made. How do I make fewer requests, create fewer objects and make this simple app super fast? Production : https pickaxe dot ca. Thank you! -Dan H
-
Comparing Phoenix to Rails in December 2022
The functionality comes from https://github.com/rails/jsbundling-rails and https://github.com/rails/cssbundling-rails -- both come with Rails 7 and all you have to do is generate your app with the choices you want such as -j esbuild --css tailwind.
-
Setup TailwindCSS, postcss and esbuild on Rails 7
TailwindCSS from CSS Bundling for Rails - (this post)
-
New Rails project - help me choose JS + CSS bundling option.
Maybe https://github.com/rails/cssbundling-rails does what you want? For CSS only, afaik it's perfectly fine to mix different approaches for CSS and JS within one Rails app, so you could still use importmaps for JS.
-
Cannot import styles with postcss using cssbundling and esbuild
The docs at https://github.com/rails/cssbundling-rails clearly state that
-
Foundation + Rails 7 tutorial
Install cssbundling-rails gem.
-
How to migrate rails sprockets to propshaft
Propshaft has a smaller scope than sprockets and requires you to rely on the js-bundling and css-bundling gems to handle the building of CSS and JS assets. Read the docs for an extensive upgrade guide.
-
New view helpers for jsbundling ?
As you may know there's also a [CSS bundling](https://github.com/rails/cssbundling-rails). However, I've only upgraded a trivial project, don't know how involved that would be.
propshaft
Posts with mentions or reviews of propshaft.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-12.
-
The Full-Stack development experience
Ruby On Rails, thanks to propshaft, closes a chapter. Welcome to 2023, where deploying JavaScript and CSS is a breeze. Welcome to the no-build era.
-
A Quick and Easy Guide to the Asset Pipeline in Rails 7
No mention of propshaft which is the true replacement for sprockets: https://github.com/rails/propshaft
-
Gnarly Learnings From June 2022
Learning about new ways to manipulate data in Ruby is always fun. This article details a way to access hash values as if they were methods via the ActiveSupport::OrderedOptions class. Initially, it wasn't clear why someone would reach for this over the default syntax, but the author pointed out that syntax can be helpful in keeping configuration files clean and readable. Apparently, this can be observed in the wild in the Propshaft (an asset pipeline library) codebase, which uses it to define config.assets in Railtie.
- How to use Bootstrap 5 in Rails 7 - Importmaps & Sprockets
-
How to Access Hash Values Like Methods in Ruby
Propshaft is an asset pipeline library for Rails. It uses OrderedOptions to define the config.assets settings, instead of creating a new configuration object. You can read the complete source on Github.
-
How to migrate rails sprockets to propshaft
Propshaft has a smaller scope than sprockets and requires you to rely on the js-bundling and css-bundling gems to handle the building of CSS and JS assets. Read the docs for an extensive upgrade guide.
-
New view helpers for jsbundling ?
[They have a replacement in the works for sprockets](https://github.com/rails/propshaft), but I'm ignoring it for now. Just coping with js-bundling and css budling is enough for me.
-
February Gnarly Learnings #1: An Introduction to Propshaft
What an exciting couple of months it has been for the Rails community! Rails 7 was released in December of 2021 and this month we are welcoming Propshaft. David Heinemeier Hansson (DHH), the creator of Rails, released a post on Feb. 11 introducing the community to the new and improved asset pipeline for Rails. While Propshaft likely won't be the default until at least Rails 8, it promises a simpler solution to asset management over its predecessor, Sprockets. Sprockets, the current default asset pipeline library, has grown increasingly heavy over the years as it has attempted to shoulder all things related to bundling, minifying, transpiling, and compressing. Enabled by the new era of tech that makes Rails 7 possible, Propshaft is touted as being "absolutely tiny" in comparison and aims to provide the following: a configurable load path for your assets, digest stamping for long-expiry cache and better performance, a development server that removes the need to pre-compile assets, and basic compilers instead of full transpilers. Sprockets will require relatively long-term support and will remain the default for now but fret not! You can create a Rails 7+ app using Propshaft, or upgrade an existing app and start using it now.
-
HEY is now running with Propshaft + Dart Sass; no more Sprockets, sass, sassc…
There’s more info on the GitHub repository, stating
-
Rails 7, import JavaScript from Engine
Oh and there's a new option https://github.com/rails/propshaft which will replace sprockets in the future, didn't use it though, but looks promising
What are some alternatives?
When comparing cssbundling-rails and propshaft you can also consider the following projects:
PostCSS - Transforming styles with JS plugins
sprockets - Rack-based asset packaging system
sprockets-rails - Sprockets Rails integration
jsbundling-rails - Bundle and transpile JavaScript in Rails with esbuild, rollup.js, or Webpack.
tailwindcss-rails
dartsass-rails - Integrate Dart Sass with the asset pipeline in Rails
turbo-rails - Use Turbo in your Ruby on Rails app
Ruby on Rails - Ruby on Rails
Sass - Sass makes CSS fun!
spree_backend - Spree Admin Dashboard
factory_bot - A library for setting up Ruby objects as test data.
cssbundling-rails vs PostCSS
propshaft vs sprockets
cssbundling-rails vs sprockets-rails
propshaft vs jsbundling-rails
cssbundling-rails vs tailwindcss-rails
propshaft vs dartsass-rails
cssbundling-rails vs turbo-rails
propshaft vs Ruby on Rails
cssbundling-rails vs Sass
propshaft vs spree_backend
cssbundling-rails vs jsbundling-rails
propshaft vs factory_bot