Fix support for hot reloading without requiring anything special in the app
This commit is contained in:
parent
cbdf4d4e1a
commit
4ffe6c96ad
5 changed files with 260 additions and 53 deletions
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue