import { createRouter, createWebHistory } from 'vue-router' import Home from './components/Home.vue' const routes = [ { path: '/', name: 'Home', component: Home, }, { path: '/scratch', name: 'Scratch', component: () => import(/* webpackChunkName: "scratch" */ './components/Scratch.vue'), }, ] const router = createRouter({ history: createWebHistory(), routes: routes, }) export default router