Fix support for hot reloading without requiring anything special in the app

This commit is contained in:
Dane Everitt 2018-06-06 21:44:52 -07:00
parent cbdf4d4e1a
commit 4ffe6c96ad
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 260 additions and 53 deletions

View file

@ -30,6 +30,10 @@ Vue.use(vuexI18n.plugin, store);
Vue.i18n.add('en', Locales.en);
Vue.i18n.set('en');
if (module.hot) {
module.hot.accept();
}
const router = new VueRouter({
mode: 'history', routes
});