Configuration is is located in the .triplex
folder from the root of your project and is optional.
Create one by running the following commands in your terminal.
Terminal
npx make-dir-cli .triplex
npx touch .triplex/config.json
New Knowledge
To have autocomplete for configuration in your IDE make sure to declare the "$schema"
property.
.triplex/config.json
{
"$schema": "https://triplex.dev/config.schema.json"
}
files
Paths to component files to be opened.
provider
Path to your provider component for global & environment configuration.
publicDir
Path to the directory where static assets are stored.
define
Declare strings that are replaced at runtime.
UNSAFE_viteConfig
Define custom bundler configuration that otherwise can't be handled by default behavior.