Skip to content

Commit 1bc6ab9

Browse files
authored
Docs: Add a note about building for testing (rails#134)
I just copied this note from https://github.com/rails/jsbundling-rails
1 parent c76f5d2 commit 1bc6ab9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ With Rails 7 you can generate a new application preconfigured with Tailwind by u
2525

2626
The `tailwindcss:build` is automatically attached to `assets:precompile`, so before the asset pipeline digests the files, the Tailwind output will be generated.
2727

28+
## Building for testing
29+
30+
The `tailwindcss:build` is automatically attached to `test:prepare`, which runs before Rails tests. (Note that this currently only applies to rails `test:*` tasks (like `test:all` or `test:controllers`), not "rails test", as that doesn't load `test:prepare`).
2831

2932
## Conflict with sassc-rails
3033

0 commit comments

Comments
 (0)