Skip to content

Instantly share code, notes, and snippets.

@rtfleg
rtfleg / app.js
Last active January 29, 2018 10:19
awaitDevtools function for vuejs dev-tools, provides promise which resolves after dev-tools ready state is determined.
import Vue from "vue"
import store from "./store";
import { awaitDevtools, refreshDevtools } from "./awaitDevtools";
awaitDevtools()
.then(bootstrapApp)
.then(refreshDevtools); // Refresh is required in order to deal with missing component tree and another issues.
function bootstrapApp() {
new Vue({