Farm
Farm is a web engine written in Rust
Cache
The option to disable the cache is compilation.persistentCache: boolean
:
ts
import { defineConfig } from '@farmfe/core';
export default defineConfig({
compilation: {
persistentCache: false,
},
});
Set this value to false
to disable the cache entirely, setting to true
sets a bunch of default values.
See Using Cache from the Farm documentation
Plugins
Farm has a system of plugins for loading things that it otherwise cannot out of the box.
For example, WASM is not supported out of the box, but there is a WASM plugin.
To install it:
npm install -D @farmfe/plugin-wasm
- Add to your Farm configuration file:
ts
import { defineConfig } from '@farmfe/core';
import wasm from '@farmfe/plugin-wasm';
export default defineConfig({
plugins: [ wasm(), ],
});
Note
Note that is just plugins
in that config file, not compilation.plugins
.