The frontend assets including the Svelte js files are per default embedded in
the bgo binary. To enable a quick turnaround cycle for web development of the
frontend disable embedding of static assets in
Start the node build process (in directory
./web/frontend) in development mode:
> npm run dev
This will start the build process in listen mode. Whenever you change a source
flag by hand to false in
const production = false
Usually this should work automatically.
Because the files are still served by ./cc-backend you have to reload the view explicitly in your browser.
A common setup is to have three terminals open:
- One running cc-backend (working directory repository root):
./cc-backend -server -dev
- Another running npm in developer mode (working directory
npm run dev
- And the last one editing the frontend source files
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.