Complete the code to import the CSS bundling gem in your Gemfile.
gem '[1]'
The cssbundling-rails gem is used to enable CSS bundling in Rails.
Complete the command to install CSS bundling with Tailwind CSS.
bin/rails css:install:[1]The command bin/rails css:install:tailwind installs Tailwind CSS bundling.
Complete the Tailwind directive inside application.css.
@tailwind [1];To include Tailwind CSS base layer, you use @tailwind base; in your CSS file.
Fill both blanks to configure the build command and output path in package.json.
"scripts": { "build:css": "[1] input.css -o [2] --minify" }
The build command uses tailwindcss to process input.css and outputs to app/assets/builds/application.css.
Fill all three blanks to add the CSS build step to your Procfile.dev for development.
css: [1] --watch [2] -o [3]
The Procfile.dev runs tailwindcss --watch input.css -o app/assets/builds/application.css to rebuild CSS on changes.