Skip to content

Commit c0acd58

Browse files
author
David Heinemeier Hansson
committed
Update description
1 parent f267b9c commit c0acd58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CSS Bundling for Rails
22

3-
Use [Tailwind CSS](https://tailwindcss.com), [PostCSS](https://postcss.org), [Dart Sass](https://sass-lang.com/), or [Bootstrap](https://getbootstrap.com/) to bundle and process your CSS, then deliver it via the asset pipeline in Rails. This gem provides installers to get you going with the bundler of your choice in a new Rails application, and a convention to use `app/assets/builds` to hold your bundled output as artifacts that are not checked into source control (the installer adds this directory to `.gitignore` by default).
3+
Use [Tailwind CSS](https://tailwindcss.com), [Bootstrap](https://getbootstrap.com/), [PostCSS](https://postcss.org), or [Dart Sass](https://sass-lang.com/) to bundle and process your CSS, then deliver it via the asset pipeline in Rails. This gem provides installers to get you going with the bundler of your choice in a new Rails application, and a convention to use `app/assets/builds` to hold your bundled output as artifacts that are not checked into source control (the installer adds this directory to `.gitignore` by default).
44

55
You develop using this approach by running the bundler in watch mode in a terminal with `yarn build:css --watch` (and your Rails server in another, if you're not using something like [puma-dev](https://github.com/puma/puma-dev)). Whenever the bundler detects changes to any of the stylesheet files in your project, it'll bundle `app/assets/stylesheets/application.[bundler].css` into `app/assets/builds/application.css`. This build output takes over from the regular asset pipeline default file. So you continue to refer to the build output in your layout using the standard asset pipeline approach with `<%= stylesheet_link_tag "application" %>`.
66

@@ -21,9 +21,9 @@ You must already have node and yarn installed on your system. You will also need
2121

2222
1. Add `cssbundling-rails` to your Gemfile with `gem 'cssbundling-rails'`
2323
2. Run `./bin/bundle install`
24-
3. Run `./bin/rails css:install:[tailwind|postcss|sass|bootstrap]`
24+
3. Run `./bin/rails css:install:[tailwind|bootstrap|postcss|sass]`
2525

26-
Or, in Rails 7+, you can preconfigure your new application to use a specific bundler with `rails new myapp --css [tailwind|postcss|sass|bootstrap]`.
26+
Or, in Rails 7+, you can preconfigure your new application to use a specific bundler with `rails new myapp --css [tailwind|bootstrap|postcss|sass]`.
2727

2828

2929
## License

cssbundling-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
66
spec.authors = [ "David Heinemeier Hansson", "Dom Christie" ]
77
spec.email = "[email protected]"
88
spec.homepage = "https://github.com/rails/cssbundling-rails"
9-
spec.summary = "Bundle and process CSS with Tailwind, PostCSS, or Sass in Rails via Node.js."
9+
spec.summary = "Bundle and process CSS with Tailwind, Bootstrap, PostCSS, Sass in Rails via Node.js."
1010
spec.license = "MIT"
1111

1212
spec.files = Dir["lib/**/*", "MIT-LICENSE", "README.md"]

0 commit comments

Comments
 (0)