chore: basic configuration for threejs

This commit is contained in:
Neko Ayaka
2024-12-04 11:48:43 +08:00
parent b86854db28
commit c4aa079d4e
3 changed files with 7 additions and 2 deletions
@@ -1,9 +1,10 @@
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
</script>
<template>
<div>
<h1>3D View</h1>
<div>Working in progress</div>
<TresCanvas />
</div>
</template>
+2
View File
@@ -1,3 +1,4 @@
import Tres from '@tresjs/core'
import NProgress from 'nprogress'
import { createPinia } from 'pinia'
import { setupLayouts } from 'virtual:generated-layouts'
@@ -34,4 +35,5 @@ createApp(App)
.use(router)
.use(pinia)
.use(i18n)
.use(Tres)
.mount('#app')
+2
View File
@@ -3,6 +3,7 @@ import { copyFile, cp, mkdir } from 'node:fs/promises'
import path, { join, resolve } from 'node:path'
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
import { templateCompilerOptions } from '@tresjs/core'
import Vue from '@vitejs/plugin-vue'
import { ofetch } from 'ofetch'
import Unocss from 'unocss/vite'
@@ -53,6 +54,7 @@ export default defineConfig({
plugins: {
vue: Vue({
include: [/\.vue$/, /\.md$/],
...templateCompilerOptions,
}),
},
}),