Skip to content

Commit b8768ea

Browse files
committed
Use import without .css
1 parent 6bfa5f7 commit b8768ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ If you use Rails in the default mode without any pre-processor, you'll have to a
5858

5959
If you followed the [official bootstrap installation guide](https://github.com/twbs/bootstrap-rubygem#a-ruby-on-rails), you'll probably have switched to SCSS. In this case add the following line to your `application.scss`:
6060

61+
62+
If you're using Propshaft (for example, the Rails 8 default), do it like this:
63+
64+
```scss
65+
@use "rails_bootstrap_forms";
66+
```
67+
68+
Else if you're using Sprockets (the Rails default before Rails 8), do it like this:
69+
6170
```scss
6271
@import "rails_bootstrap_forms.css";
6372
```

0 commit comments

Comments
 (0)