Skip to content

Commit 39345a0

Browse files
committed
README clarification on testing the static, production build
1 parent 43b8899 commit 39345a0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inspect the corresponding results.
55

66
Table of contents:
77
* [Getting Started](#getting-started)
8-
* [Static build](#static-build)
8+
* [Static, production build](#static-production-build)
99
* [Logging in](#logging-in)
1010
* [Configuration file](#configuration-file)
1111
* [Specifying sources](#specifying-sources)
@@ -58,15 +58,15 @@ you also need to activate the supporting resources:
5858
Some queries require a log in.
5959
Log in with the IDP `http://localhost:8080` and the credentials for the user owning the pod named `example` in the file `seeded-pod-config.json`.
6060

61-
## Static build
61+
## Static, production build
6262

6363
To make a standalone version of the result of this project, you can make a static build and serve it using any webserver. Execute:
6464

6565
```bash
6666
npm run build
6767
```
6868

69-
The static build appears in the `dist` folder.
69+
The static build appears in the `dist` folder.
7070

7171
## Logging in
7272

@@ -234,7 +234,13 @@ The development version might be tested repeatedly during development.
234234
1. Build the production version of the Web application and serve it:
235235

236236
```bash
237+
# make really, really sure to build from scratch
238+
rm -rf node_modules/
239+
rm -rf dist/
240+
npm install
241+
# build
237242
npm run build
243+
# serve
238244
npx http-server -p 5173 ./dist
239245
```
240246

0 commit comments

Comments
 (0)