Skip to content

Commit

Permalink
Remove mention to --runFast in docs
Browse files Browse the repository at this point in the history
(Not necessary since Fable 3.7)
  • Loading branch information
alfonsogarciacaro committed May 27, 2022
1 parent 82c3286 commit 4560f60
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions docsrc/docs/hmr.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,6 @@ npx vite build # Build your site for production

That's it, now you have an extremely fast development server and an optimized build with zero config (built files will be put in `dist` folder by default). If you need to edit some settings, you can still use a [config file](https://vitejs.dev/config/) or the CLI options (check them with `npx vite --help`).

## Fable --runFast

If you use `--runFast` option with Fable instead of `--run`, Vite will be started right away instead of waiting until first Fable compilation. When developing you usually already have the compiled files from the previous day, so this way you can get a development server up and running in under 200 milliseconds!

```
dotnet fable watch src -o build/client --runFast vite --open
```

> When Fable compilation finishes Vite will just reload with the updated code.
For production make sure to use `--run` so vite doesn't start bundling until Fable has finished compilation.

```
dotnet fable src -o build/client --run vite build
```

## Elmish and Local HMR

Lit.Elmish is compatible with [Elmish HMR](https://elmish.github.io/hmr/) (use Fable.Elmish.HMR >= 4.3 for Vite support).
Expand Down

0 comments on commit 4560f60

Please sign in to comment.