Fable CLI
Commands
fable
Run Fable in release mode, RELEASE
compiler directive will be set.
fable watch
Run Fable in watch mode, DEBUG
compiler directive will be set.
let host =
#if DEBUG
"http://localhost:8080"
#else
"https://myapp.com"
#endif
fable clean
Remove fable_modules
folders and files with specified extensions (default .fs.js
).
Options
Options | Description |
---|---|
| Working directory |
| Redirect compilation output to a directory |
| Extension for generated JS files (default .fs.js) |
| Enable source maps |
| Set the value of the |
| Defines a symbol for use in conditional compilation |
| The configuration to use when parsing .fsproj with MSBuild, default is 'Debug' in watch mode, or 'Release' otherwise |
| Print more info during compilation |
| Don't print any log during compilation |
| Compile numeric arrays as JS typed arrays (default is true for JS, false for TS) |
| Alias of watch command |
| Delay in ms before recompiling after a file changes (default 200) |
| The command after the argument will be executed after compilation |
| The command after the argument will be executed BEFORE compilation |
| Like run, but will execute after each watch compilation |
| Runs the generated script for last file with node (Requires |
| Automatically reply 'yes' (e.g. with |
| Skip |
| Recompile all files, including sources from packages |
| Don't merge sources of referenced projects with specified pattern (Intended for plugin development) |
| Compile with optimized F# AST (experimental) |
| Choose wich languages to compile to Available options:
Default is javascript |
Environment variables
DOTNET_USE_POLLING_FILE_WATCHER
When set to '1' or 'true', Fable watch will poll the file system for changes. This is required for some file systems, such as network shares, Docker mounted volumes, and other virtual file systems.