Skip to content

Commit

Permalink
README clarify javascript:build may also need to be run if test:prepa…
Browse files Browse the repository at this point in the history
…re is not defined (#54)
  • Loading branch information
ajaynomics authored Jan 16, 2022
1 parent a1d4c6b commit 124665a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ When you deploy your application to production, the `css:build` task attaches to

This also happens in testing where the bundler attaches to the `test:prepare` task to ensure the stylesheets have been bundled before testing commences. (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`).

If your test framework does not define a `test:prepare` Rake task, ensure that your test framework runs `css:build` to bundle stylesheets before testing commences.
If your test framework does not define a `test:prepare` Rake task, ensure that your test framework runs `css:build` to bundle stylesheets before testing commences. If your setup uses [jsbundling-rails](https://github.com/rails/jsbundling-rails) (ie, esbuild + tailwind), you will also need to run `javascript:build`.

That's it!

Expand Down

0 comments on commit 124665a

Please sign in to comment.