From ad2616bdb42b379bf6f34abcc76a6829f38f8268 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sun, 8 Nov 2020 15:04:49 +0100 Subject: [PATCH] Add info about webpack-dev-server --- docs/LOCAL_SETUP.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/LOCAL_SETUP.md b/docs/LOCAL_SETUP.md index 7cc69d4f..8ceae0c0 100644 --- a/docs/LOCAL_SETUP.md +++ b/docs/LOCAL_SETUP.md @@ -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.