From fc513cddac0434b4e7e66981320e752a3f360ae7 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Fri, 30 Nov 2018 12:53:50 +0100 Subject: [PATCH] Use prefetch for MapView chunk --- src/App.vue | 2 +- src/views/LazyMap.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4872274..2cc9fd7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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); }); diff --git a/src/views/LazyMap.vue b/src/views/LazyMap.vue index 188852c..5b1a4b3 100644 --- a/src/views/LazyMap.vue +++ b/src/views/LazyMap.vue @@ -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, }), },