Configuration
The following is a reference of all available values for the garden.config.js
file.
If you are looking for component level configuration, checkout Component Configuration.
modules
type: ModuleRecord[]
Module records, usually pulled from your lwc.config.json
file.
rootDir
type: string
Define the root directory to run your project. Optional, will default to process.cwd()
(current directory).
ignore
type: string[]
Array of minimatch strings to exclude from the LWC Garden local dev server.
theme
type: GardenTheme
Configuration to adjust the theme. You may choose to bring your own theme or use one of the default themes.
Themes can be imported from:
Available default themes:
green
(default)blue
orange
rose
yellow
zinc
GardenTheme
args
type: GardenArgsConfig
Args currently only contains one property, cache
.
When enabled, arg values that are set on components will be cached to localStorage
. This is true
by default, but can be disabled by passing args.cache = false
.
GardenArgsConfig
slots
type: GardenSlotsConfig
placeholder
When true
, will set children on <slot/>
s when found in the HTML markup of your LWCs. Mark as false
to disable.
components
Configuration object of components to use for their respective slot names. e.g.
NOTE:
default
is used to fill non-named slots.
GardenSlotsConfig
port
type: number
Port to run the local dev server on. Defaults to 3333
lwc
type: GardenLwcConfig