When building an application, it is recommended to use the vuechain
bootstrapper.
It takes care of all important things and is executed while some parts of your application may still be loading.
import { bootstrap } from "vuechain";
import App from "./app.vue";
bootstrap({
app: App
});
The start hook is executed after the vue instance has been created.
When the start hook finishes, the vue instance is rendered.
bootstrap({
app: App,
async start(app: Vue) {
// Do some startup logic like..
// ..Fetching a configuration.
// ..Setting the locale.
}
});