A pluggable and extendable skeleton which help to integrate several existing web frameworks to create your own micro frontends out of the box with even zero configuration.
caviar
brings web mesh to the real world.
An architectural style where independently deliverable frontend applications are composed into a greater whole
caviar
about web meshWhy caviar?
The sections below is for development purpose
caviar
for your own businessawait caviar(options: object).run(phase?: string): ChildProcess | void
string='default'
const {
caviar
} = require('caviar')
caviar({
cwd: '/path/to/project',
preset: '@my/caviar-preset'
})
.run()
.catch(console.error)
Common options
path
the current working directoryboolean=false
whether is for development purposestring
module id or absolute path of the presetpath
absolute path of the configuration file. options.configFile
often takes the return value of require.resolve()
boolean=false
whether to enable caviar sandboxSandbox options
object
extra environment key-value pairs.(Array | string)='inherit'
the options.stdio
option of child_process.fork