Skip to content

Commit 6638652

Browse files
committed
docs: Document automatic builds path inclusion
1 parent 11fc952 commit 6638652

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# `tailwindcss-rails` Changelog
22

3+
## Unreleased
4+
5+
### Added
6+
7+
* Added default `app/assets/builds` path to Rails asset paths in the engine initializer. This ensures generated CSS in builds folder is served without manual configuration.
8+
39
## v4.2.3 / 2025-05-02
410

511
### Improved

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* [Class names must be spelled out](#class-names-must-be-spelled-out)
3131
* [`ERROR: Cannot find the tailwindcss executable` for supported platform](#error-cannot-find-the-tailwindcss-executable-for-supported-platform)
3232
* [Using asset-pipeline assets](#using-asset-pipeline-assets)
33+
* [Asset path configuration with Propshaft](#asset-path-configuration-with-propshaft)
3334
- [License](#license)
3435

3536
<!-- tocstop -->
@@ -484,6 +485,12 @@ The inline version also works:
484485
<section class="bg-[url('image.svg')]">Has the image as it's background</section>
485486
```
486487
488+
### Asset path configuration with Propshaft
489+
490+
When using Propshaft as your asset pipeline, the gem automatically adds `app/assets/builds` to your Rails asset paths. This ensures that Tailwind CSS output files are served correctly without requiring manual configuration in your application.
491+
492+
If you're manually configuring asset paths with Propshaft, be aware that this is handled for you by the gem's engine initializer.
493+
487494
## License
488495
489496
Tailwind for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)