This custom app template uses file overrides to customize a webapp built using Vite.
package.json
to configure the version of "volview" that you want to customize.npm install
.Once everything has been installed, you can look inside app/
for a sample file override, which updates some configuration keys.
All vite commands are supported:
npm run dev
: run the dev servernpm run build
: build the appnpm run preview
: preview a production-build of the appFile overriding is the primary customization behavior of this template. Files inside the override directory must match the relative file path in the core repository in order to be overridden.
Imports can be classified into 3 types: override-to-override, override-to-core, and core-to-core.
This repo by default customizes the "volview" project pointed to in package.json
, with an override folder called app/
.
If you are interested in renaming the customization target or the override folder, here's what you need to change.
package.json
.customizeUtils/custom-app.config.cjs
with the new package name and/or override folder.tsconfig.json
to change instances of "volview" if you've changed the package name, and "app" if you've changed the override folder.patches/vite*.patch
to change instances of "volview" if you've changed the package name.