Skip to content

Commit

Permalink
Update docs to cover sp7 - for react-rails v2.7 (#1284)
Browse files Browse the repository at this point in the history
* Update docs to cover Shakapacker 7
  • Loading branch information
ahangarha authored Jul 19, 2023
1 parent 11c498e commit ce356ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ $ cd my-app
2. Install `shakapacker`:
```bash
$ bundle add shakapacker --strict
$ rails webpacker:install
$ rails shakapacker:install # or `rails webpacker:install` for Shakapacker v6
```

3. Install `react` and some other required npm packages:
Expand Down Expand Up @@ -166,7 +166,7 @@ Output: greeting: Hello from react-rails", inspect webpage in your browser to se
In order to run dev server with HMR feature you need to parallely run:

```bash
$ ./bin/webpacker-dev-server
$ ./bin/shakapacker-dev-server # or ./bin/webpacker-dev-server for Shakapacker 6
```

Note: On Rails 6 you need to specify `webpack-dev-server` host. To this end, update `config/initializers/content_security_policy.rb` and uncomment relevant lines.
Expand Down

0 comments on commit ce356ae

Please sign in to comment.