diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-21 02:26:27 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-21 02:26:27 +0800 |
| commit | 183c4869e6baf03ad12d10ab8deeaec656a7d348 (patch) | |
| tree | 260939bb0c38494efe75b73968d20464f749bea0 | |
| parent | dd75aaf6e82799ce88d8e66b01a3d53ba05301c9 (diff) | |
| download | somhairles-dream-fsharp-183c4869e6baf03ad12d10ab8deeaec656a7d348.tar.gz | |
docs(readme): require --noCache in the frontend fable command everywhere
| -rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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. |
