[Client] Use dynamic import to reduce bundle size

This commit is contained in:
syuilo
2018-11-06 15:37:41 +09:00
parent fb8af53751
commit 6d67cd07a0
4 changed files with 12 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
<template>
<mk-ui>
<span slot="header"><span style="margin-right:4px;"><fa icon="gamepad"/></span>%i18n:@reversi%</span>
<mk-reversi :game-id="$route.params.game" @nav="nav" :self-nav="false"/>
<x-reversi :game-id="$route.params.game" @nav="nav" :self-nav="false"/>
</mk-ui>
</template>
@@ -9,6 +9,9 @@
import Vue from 'vue';
export default Vue.extend({
components: {
XReversi: () => import('../../../../common/views/components/games/reversi/reversi.vue')
},
mounted() {
document.title = `${(this as any).os.instanceName} %i18n:@reversi%`;
},