feat: use unhead v2 (#549)
Co-authored-by: Anthony Fu <github@antfu.me>
This commit is contained in:
1 parent
73f71ecb7d
commit
63fde48052
9 files changed
+363
-213
No files matched your search
+3
-1
@@ -1,6 +1,7 @@
|
||||
import path from 'node:path'
|
||||
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
|
||||
import Shiki from '@shikijs/markdown-it'
|
||||
import { unheadVueComposablesImports } from '@unhead/vue'
|
||||
import Vue from '@vitejs/plugin-vue'
|
||||
import LinkAttributes from 'markdown-it-link-attributes'
|
||||
import Unocss from 'unocss/vite'
|
||||
@@ -44,11 +45,12 @@ export default defineConfig({
|
||||
|
||||
// https://github.com/antfu/unplugin-auto-import
|
||||
AutoImport({
|
||||
include: [/\.[jt]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
|
||||
imports: [
|
||||
'vue',
|
||||
'vue-i18n',
|
||||
'@vueuse/head',
|
||||
'@vueuse/core',
|
||||
unheadVueComposablesImports,
|
||||
VueRouterAutoImports,
|
||||
{
|
||||
// add any other imports you were relying on
|
||||
|
||||
Reference in new issue
Block a user