Overview
@saflib/vite provides a function for making a vite config for the mix of libraries that SAF depends on, and the way they're organized and served.
The vite config includes:
- Uses the
CLIENT_SUBDOMAINSenvironment variable to determine which subdomains get built and developed. - A mix of
spaandmpavite appType. The config is technically inmpato allow multiple entrypoints, but that lacks thespafallback in development, so the vite config also includes a fallback plugin. - Plugins for vuetify, vue, and vue-devtools.