Skip to content

Commit

Permalink
chore: remove @vueuse/head and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 16, 2021
1 parent 7d3abe7 commit 541f9fb
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 26 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ See [Vitesse](https://github.com/antfu/vitesse) for full featureset.
- [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components) - components auto import
- [`vite-plugin-windicss`](https://github.com/antfu/vite-plugin-windicss) - WindiCSS support
- [VueUse](https://github.com/antfu/vueuse) - collection of useful composition APIs
- [`@vueuse/head`](https://github.com/vueuse/head) - manipulate document head reactively
- [`vue-global-api`](https://github.com/antfu/vue-global-api) - Use Vue Composition API globally

## Try it now!
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/pwa-192x192.png">
<meta name="theme-color" content="#ffffff">
<title>Vitesse Lite</title>
<meta name="description" content="Opinionated Vite Starter Template">
</head>
<body>
<div id="app"></div>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
},
"dependencies": {
"@vueuse/core": "^6.0.0",
"@vueuse/head": "^0.6.0",
"vue": "^3.2.2",
"vue-demi": "^0.11.3",
"vue-global-api": "^0.4.1",
Expand Down
Binary file removed public/pwa-192x192.png
Binary file not shown.
Binary file removed public/pwa-512x512.png
Binary file not shown.
14 changes: 0 additions & 14 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
<script setup lang="ts">
import { useHead } from '@vueuse/head'
// https://github.com/vueuse/head
// you can use this to manipulate the document head in any components,
// they will be rendered correctly in the html results with vite-ssg
useHead({
title: 'Vitesse Lite',
meta: [
{ name: 'description', content: 'Opinionated Vite Starter Template' },
],
})
</script>

<template>
<main class="px-4 py-10 text-center text-gray-700 dark:text-gray-200">
<router-view />
Expand Down
3 changes: 0 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'vue-global-api'
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import routes from 'virtual:generated-pages'
import { createHead } from '@vueuse/head'
import App from './App.vue'

// windicss layers
Expand All @@ -17,7 +16,5 @@ const router = createRouter({
history: createWebHistory(),
routes,
})
const head = createHead()
app.use(head)
app.use(router)
app.mount('#app')
5 changes: 0 additions & 5 deletions src/pages/[...all].vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
Not Found
</div>
</template>

<route lang="yaml">
meta:
layout: 404
</route>

0 comments on commit 541f9fb

Please sign in to comment.