Upgrading & Uninstalling
Vite creates zero database tables, zero custom templates or fields, and zero filesystem caches outside your own Vite build output. Upgrading or removing it is completely non-destructive.
Upgrading Vite
Section titled “Upgrading Vite”Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.
-
Update the package and refresh modules so ProcessWire runs
___upgrade()automatically:Terminal window composer update trk/processwire-vitephp vendor/bin/wire module:refresh
- Open Setup -> Upgrades (with
ProcessWireUpgrade) or navigate to Modules -> New and use Add Module from Directory (Vite), Add Module from URL, or Add Module from Upload (ZIP archive) to replace the module files. - Click Modules -> Refresh so ProcessWire detects the new version and executes
___upgrade()automatically.
- Replace
site/modules/Vite/with the new release directory. - Open Modules -> Refresh in the ProcessWire Admin (or run
php vendor/bin/wire module:refresh) so___upgrade()executes cleanly.
Uninstalling Vite
Section titled “Uninstalling Vite”-
Remove
vite()and$this->wire()->vitecalls from yoursite/templates/files and anysetting('vite', ...)entries fromsite/config.php. -
Uninstall the module from Modules -> Site -> Vite -> Uninstall or via CLI:
Terminal window php vendor/bin/wire module:uninstall Vite -
Remove the Composer dependency (optional):
Terminal window composer remove trk/processwire-vite
What Uninstalling Leaves Untouched
Section titled “What Uninstalling Leaves Untouched”- Your
site/templates/build/compiled assets andvite.config.tsremain untouched on disk. - No ProcessWire pages, templates, fields, or permissions are modified.