Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference to swc demo branch #61

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ bin/dev-static
overmind start -f Procfile.dev-static
```

## Running with SWC

Starting from Shakapacker 6.1.1, it is possible to use SWC in projects.
See
[tomdracz/swc-config](https://github.com/shakacode/react_on_rails_demo_ssr_hmr/tree/tomdracz/swc-config)
branch for a demonstration of SWC usage.

Please check out
[Shakapacker - Using SWC Loader](https://github.com/shakacode/shakapacker/blob/master/docs/using_swc_loader.md)
documentation for more information about this feature.

## Testing Functionality of SSR and HMR

1. Start app using either `bin/dev` or `bin/dev-static` (or run `Procfile.dev` or `Procfile.dev-static` with your favorit process manager like overmind or foreman).
Expand Down
Loading