Skip to content

Commit d21f87e

Browse files
Merge pull request #3226 from justin808/patch-23
Differentiate v6 from v7 Rails
2 parents 9d55518 + 0801f97 commit d21f87e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,16 @@ leaving Webpack responsible solely for app-like JavaScript, or it can be used ex
8080

8181
You can configure a new Rails application with Webpacker right from the start using the `-j webpack` option:
8282

83+
With Rails v7:
8384
```bash
8485
rails new myapp -j webpack
8586
```
8687

88+
With Rails v6:
89+
```bash
90+
rails new myapp
91+
```
92+
8793
Or you can add it later by changing your `Gemfile`:
8894

8995
```ruby

0 commit comments

Comments
 (0)