Skip to content

Commit be585a8

Browse files
Split intro in another chunk and fixes
1 parent 18e446a commit be585a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Vue.use(Analytics, {
4545
});
4646
Vue.use(GTM, {
4747
enabled: true,
48-
debug: true,
48+
debug: process.env.NODE_ENV !== "production",
4949
vueRouter: router
5050
// ignoredViews: ['']
5151
});

src/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Vue from "vue";
22
import Router from "vue-router";
3-
import Intro from "./views/Intro.vue";
43

54
Vue.use(Router);
65

@@ -22,7 +21,8 @@ export default new Router({
2221
{
2322
path: "/",
2423
name: "intro",
25-
component: Intro
24+
component: () =>
25+
import(/* webpackChunkName: "intro" */ "./views/Intro.vue")
2626
},
2727
{
2828
path: "/about-me",

0 commit comments

Comments
 (0)