update project config to match official create vue recommendations

This commit is contained in:
2023-05-19 14:16:44 +02:00
parent e491f52e26
commit 83c58d5aca
15 changed files with 4539 additions and 205 deletions

View File

@@ -1,6 +1,7 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
// CKEditor
@@ -18,7 +19,7 @@ export default defineConfig({
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})