summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-21 02:26:27 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-21 02:26:27 +0800
commit183c4869e6baf03ad12d10ab8deeaec656a7d348 (patch)
tree260939bb0c38494efe75b73968d20464f749bea0 /README.md
parentdd75aaf6e82799ce88d8e66b01a3d53ba05301c9 (diff)
downloadsomhairles-dream-fsharp-183c4869e6baf03ad12d10ab8deeaec656a7d348.tar.gz
docs(readme): require --noCache in the frontend fable command everywhere
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 907fc50..89c962c 100644
--- a/README.md
+++ b/README.md
@@ -34,9 +34,15 @@ dotnet test SomhairlesDream.sln
```sh
dotnet fable src/SomhairlesDream.Frontend/SomhairlesDream.Frontend.fsproj \
- --outDir public --noRestore
+ --outDir public --noRestore --noCache
```
+`--noCache` avoids fable's shared project-options cache, which is keyed by
+fsproj content: reusing it across checkouts of the same project can yield
+spurious `Fable namespace not defined` errors (and even leave a corrupted
+`App.js` behind after a failed compile). The same flag is required in the
+clean-checkout sequence below.
+
The server project copies `public/**` into its build output
(`CopyToOutputDirectory=PreserveNewest`), so rerun `dotnet build` on the server
after regenerating the bundle.