-<span class=grvsc-line><span class=grvsc-source><span class=mtk1> #endif</span></span></span></code></pre><h3 id=fable-clean><code>fable clean</code><a aria-hidden=true href=#fable-clean tabindex=-1><span class=anchor>#</span></a></h3><p>Remove <code>fable_modules</code> folders and files with specified extensions (default <code>.fs.js</code>).<h2 id=options>Options<a aria-hidden=true href=#options tabindex=-1><span class=anchor>#</span></a></h2><table class="is-hoverable is-striped table"style=min-width:300px><thead><tr><th>Options<th>Description<tbody><tr><td><p><code>--cwd</code><td><p>Working directory<tr><td><p><code>-o|--outDir</code><td><p>Redirect compilation output to a directory<tr><td><p><code>-e|--extension</code><td><p>Extension for generated JS files (default .fs.js)<tr><td><p><code>-s|--sourceMaps</code><td><p>Enable source maps<tr><td><p><code>--sourceMapsRoot</code><td><p>Set the value of the <code>sourceRoot</code> property in generated source maps<tr><td><p><code>--define</code><td><p>Defines a symbol for use in conditional compilation<tr><td><p><code>-c|--configuration</code><td><p>The configuration to use when parsing .fsproj with MSBuild, default is 'Debug' in watch mode, or 'Release' otherwise<tr><td><p><code>--verbose</code><td><p>Print more info during compilation<tr><td><p><code>--silent</code><td><p>Don't print any log during compilation<tr><td><p><code>--typedArrays</code><td><p>Compile numeric arrays as JS typed arrays (default is true for JS, false for TS)<tr><td><p><code>--watch</code><td><p>Alias of watch command<tr><td><p><code>--watchDelay</code><td><p>Delay in ms before recompiling after a file changes (default 200)<tr><td><p><code>--run</code><td><p>The command after the argument will be executed after compilation<tr><td><p><code>--runFast</code><td><p>The command after the argument will be executed BEFORE compilation<tr><td><p><code>--runWatch</code><td><p>Like run, but will execute after each watch compilation<tr><td><p><code>--runScript</code><td><p>Runs the generated script for last file with node<p>(Requires <code>"type": "module"</code> in package.json and at minimum Node.js 12.20, 14.14, or 16.0.0)<tr><td><p><code>--yes</code><td><p>Automatically reply 'yes' (e.g. with <code>clean</code> command)<tr><td><p><code>--noRestore</code><td><p>Skip <code>dotnet restore</code><tr><td><p><code>--noCache</code><td><p>Recompile all files, including sources from packages<tr><td><p><code>--exclude</code><td><p>Don't merge sources of referenced projects with specified pattern (Intended for plugin development)<tr><td><p><code>--optimize</code><td><p>Compile with optimized F# AST (experimental)<tr><td><p><code>--lang|--language</code><td><p>Choose wich languages to compile to<p>Available options:<ul><li>javascript (alias js) - <strong>stable</strong><li>typescript (alias ts) - <strong>stable</strong><li>python (alias py) - <strong>beta</strong><li>rust (alias rs) - <strong>beta</strong><li>dart - <strong>beta</strong><li>php - <strong>experimental</strong></ul><p>Default is javascript</table><h2 id=environment-variables>Environment variables<a aria-hidden=true href=#environment-variables tabindex=-1><span class=anchor>#</span></a></h2><h3 id=dotnet_use_polling_file_watcher><code>DOTNET_USE_POLLING_FILE_WATCHER</code><a aria-hidden=true href=#dotnet_use_polling_file_watcher tabindex=-1><span class=anchor>#</span></a></h3><p>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.</div></div></section><div class="section bd-docs-pagination bd-pagination-links"><a class="button bd-fat-button is-primary is-light bd-pagination-prev" href="/docs/getting-started/rust.html"><i>←</i><span class="is-hidden-mobile"><em>Getting started</em><strong>Rust</strong></span></a><a class="button bd-fat-button is-primary is-light bd-pagination-next" href="/docs/your-fable-project/use-a-fable-library.html"><span class="is-hidden-mobile"><em>Your Fable project</em><strong>Use a Fable library</strong></span><i>→</i></a></div></div></div></div></div><script async="" src="/resources/nacara-standard-layouts/scripts/menu.js"></script></body></html>
0 commit comments