Use prefetch for MapView chunk

This commit is contained in:
Lucas Verney 2018-11-30 12:53:50 +01:00
parent e824404b69
commit fc513cddac
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ export default {
this.hasReportError = false;
},
exportGPX() {
import('@/tools/exportGPX' /* webpackChunkName: "MapView" */).then((module) => {
import('@/tools/exportGPX' /* webpackChunkName: "MapView", webpackPrefetch: true */).then((module) => {
const activityName = this.$t('misc.activityName');
module.default(activityName, this.$store.state.location.gpx);
});

View File

@ -8,7 +8,7 @@ import Loading from '@/views/Loading.vue';
export default {
components: {
Map: () => ({
component: import('@/views/Map.vue' /* webpackChunkName: "MapView" */),
component: import('@/views/Map.vue' /* webpackChunkName: "MapView", webpackPrefetch: true */),
loading: Loading,
}),
},