Skip to content

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.

Always take a database backup (php vendor/bin/wire db:backup) before upgrading in production.

  1. Update the package and refresh modules so ProcessWire runs ___upgrade() automatically:

    Terminal window
    composer update trk/processwire-vite
    php vendor/bin/wire module:refresh
  1. Remove vite() and $this->wire()->vite calls from your site/templates/ files and any setting('vite', ...) entries from site/config.php.

  2. Uninstall the module from Modules -> Site -> Vite -> Uninstall or via CLI:

    Terminal window
    php vendor/bin/wire module:uninstall Vite
  3. Remove the Composer dependency (optional):

    Terminal window
    composer remove trk/processwire-vite
  • Your site/templates/build/ compiled assets and vite.config.ts remain untouched on disk.
  • No ProcessWire pages, templates, fields, or permissions are modified.

Next steps