Add info about webpack-dev-server

This commit is contained in:
Sebastian Serth
2020-11-08 15:04:49 +01:00
parent c2a816968e
commit ad2616bdb4

View File

@ -165,3 +165,13 @@ admin@example.org:admin
```shell script
rails s
```
## Webpack
This project uses `webpacker` to integrate Webpack with Rails to deliver Frontend assets. During development, the `webpack-dev-server` automatically launches togehter with the Rails server if not specified otherwise. In case of missing JavaScript or stylesheets or for hot reloading in the browser, you might want to start the `webpack-dev-server` manually *before starting Rails*:
```shell script
./bin/webpack-dev-server
```
This will launch a dedicated server on port 3035 (default setting) and allow incoming WebSocket connections from your browser.