vitesse/src/modules
2021-02-05 09:34:09 +08:00
..
i18n.ts refactor: use ~/ for alias and improve ssg 2021-02-05 09:34:09 +08:00
nprogress.ts refactor: use ~/ for alias and improve ssg 2021-02-05 09:34:09 +08:00
README.md refactor: use ~/ for alias and improve ssg 2021-02-05 09:34:09 +08:00

Modules

A custom user module system. Place a .ts file with the following template, it will be installed automatically.

import { UserModule } from '~/types'

export const install: UserModule = ({ app, router, isClient }) => {
  // do something
}